﻿  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }


        .sniacontainer {
            max-width: 900px;
            margin: 0 auto;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .headersnia {
            background: linear-gradient(135deg, #9acd32 0%, #2e8b57 100%);
    color: white;
    text-align: center;
    padding: 30px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 12px; /* opcional */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);        }

        .form-section {
            padding: 30px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 25px;
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group.full-width {
            grid-column: 1 / -1;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
            font-size: 14px;
        }

        .form-group input[type="text"],
        .form-group input[type="email"] {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e1e8ed;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.3s ease;
            background: white;
        }

        .form-group input[type="text"]:focus,
        .form-group input[type="email"]:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .form-group input:disabled {
            background: #f8f9fa;
            color: #6c757d;
            cursor: not-allowed;
        }

        .form-group select {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e1e8ed;
            border-radius: 8px;
            font-size: 16px;
            background: white;
            transition: border-color 0.3s ease;
        }

        .form-group select:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .form-group select:disabled {
            background: #f8f9fa;
            color: #6c757d;
            cursor: not-allowed;
        }

        .category-section {
            background: #f8f9fa;
            margin: 20px 0;
            border-radius: 10px;
            padding: 25px;
        }

        .category-section.disabled {
            opacity: 0.5;
            pointer-events: none;
        }

        .category-title {
            text-align: center;
            margin-bottom: 10px;
            font-size: 20px;
            font-weight: 700;
            color: #333;
        }

        .category-subtitle {
            text-align: center;
            margin-bottom: 30px;
            font-size: 16px;
            color: #666;
            line-height: 1.4;
        }

        .candidates-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .candidate {
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 20px;
            border-radius: 10px;
            border: 2px solid transparent;
        }

        .candidate:hover {
            background: #f0f0f0;
            transform: translateY(-2px);
        }

        .candidate.selected {
            background: linear-gradient(135deg, #9acd32 0%, #2e8b57 100%);
            color: white;
            border-color: #667eea;
        }

        .candidate-avatar {
            width: 120px;
            height: 170px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            /*border-radius: 50%;*/
            margin: 0 auto 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            font-weight: bold;
        }

        .candidate.selected .candidate-avatar {
            background: white;
            color: #667eea;
        }

        .candidate-name {
            font-weight: 600;
            margin-bottom: 5px;
            font-size: 14px;
        }

        .blank-vote {
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 30px 20px;
            border: 3px dashed #ccc;
            border-radius: 10px;
            margin: 20px 0;
        }

        .blank-vote:hover {
            border-color: #999;
            background: #f9f9f9;
        }

        .blank-vote.selected {
            background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
            color: white;
            border-color: #6c757d;
        }

        .blank-vote-text {
            font-weight: 600;
            font-size: 16px;
            margin-top: 10px;
        }

        .blank-icon {
            width: 60px;
            height: 60px;
            background: #6c757d;
            margin: 0 auto 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            border-radius: 8px;
        }

        .blank-vote.selected .blank-icon {
            background: white;
            color: #6c757d;
        }

        .buttons-section {
            display: flex;
            justify-content: space-between;
            gap: 20px;
            margin-top: 40px;
            padding: 0 30px 30px;
        }

        .btn {
            padding: 15px 40px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 120px;
        }

        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none !important;
            box-shadow: none !important;
        }

        .btn-primary {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
        }

        .btn-primary:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
        }

        .btn-secondary {
            background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
            color: white;
        }

        .btn-secondary:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
        }

        .alert {
            padding: 15px;
            margin: 20px 0;
            border-radius: 8px;
            font-weight: 500;
        }

        .alert-success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .alert-error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        .alert-warning {
            background: #fff3cd;
            color: #856404;
            border: 1px solid #ffeaa7;
        }

        .hidden {
            display: none;
        }

        .access-denied {
            text-align: center;
            padding: 40px;
            color: #721c24;
        }

        .access-denied h3 {
            margin-bottom: 15px;
            font-size: 24px;
        }

        @media (max-width: 768px) {
            .sniacontainer {
                margin: 10px;
                border-radius: 10px;
            }
            
            .headersnia {
                padding: 20px;
                font-size: 24px;
            }
            
            .form-section {
                padding: 20px;
            }

            .form-row {
                grid-template-columns: 1fr;
                gap: 0;
            }
            
            .candidates-grid {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
                gap: 15px;
            }
            
            .buttons-section {
                flex-direction: column;
                padding: 0 20px 20px;
            }
        }