
    /* CSS Variables for consistent theming */
    :root {
        --primary-color: #2d3b80;
        --primary-light: #0047ab;
        --primary-dark: #1e2959;
        --accent-color: #4a90e2;
        --success-color: #28a745;
        --success-light: #34ce57;
        --text-primary: #2d3748;
    }

    /* Modern container styling */
    .modern-container {
        max-width: 95vw;
        min-height: 50vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 24px;
        margin: 3vh auto;
        padding: 2.5rem;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Enhanced page header */
    .modern-container h1 {
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 700;
        font-size: 2.2rem;
    }

    /* Enhanced input styling */
    .input-group-lg .form-control {
        border-radius: 15px;
        border: 2px solid #e9ecef;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.8);
    }

    .input-group-lg .form-control:focus {
        background: white;
        transform: translateY(-1px);
        box-shadow: 0 8px 25px rgba(74, 144, 226, 0.15);
    }

    .input-group-text {
        border-radius: 15px 0 0 15px;
        border: 2px solid #e9ecef;
        border-right: none;
        background: rgba(74, 144, 226, 0.05);
    }

    /* Enhanced form controls */
    .form-select {
        border-radius: 12px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
        font-weight: 500;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(5px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        position: relative;
        z-index: 1;
        color: var(--primary-color);
    }

    .form-select:hover {
        border-color: rgba(255, 255, 255, 0.6);
        transform: translateY(-1px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        background: rgba(255, 255, 255, 1);
    }

    .form-select:focus {
        border-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.3), 0 8px 25px rgba(0, 0, 0, 0.2);
        transform: translateY(-2px);
        background: white;
    }

    .form-control {
        border-radius: 12px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.95);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        color: var(--primary-color);
    }

    .form-control:hover {
        border-color: rgba(255, 255, 255, 0.6);
        transform: translateY(-1px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

    .form-control:focus {
        border-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.3), 0 8px 25px rgba(0, 0, 0, 0.2);
        transform: translateY(-2px);
        background: white;
    }

    .search-section {
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
        color: white;
        border-radius: 20px;
        padding: 3rem;
        margin-bottom: 2rem;
        box-shadow: 0 15px 40px rgba(45, 59, 128, 0.2);
        position: relative;
        overflow: hidden;
    }

    .search-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="4"/></g></svg>');
        animation: float 20s ease-in-out infinite;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
    }

    /* Enhanced search header */
    .search-header {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        position: relative;
        z-index: 2;
    }

    .search-icon-container {
        width: 60px;
        height: 60px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

    .search-icon-container i {
        font-size: 1.5rem;
        color: white;
    }

    .search-text-content h4 {
        color: white;
        font-weight: 700;
        font-size: 1.8rem;
        margin: 0;
    }

    .search-subtitle {
        color: rgba(255, 255, 255, 0.8);
        font-size: 1rem;
        font-weight: 400;
    }

    /* Info Reclamos Section */
    .info-reclamos {
        margin-bottom: 2rem;
    }

    .info-reclamos .alert-info {
        background: linear-gradient(135deg, rgba(74, 144, 226, 0.08) 0%, rgba(45, 59, 128, 0.05) 100%);
        border: 2px solid rgba(74, 144, 226, 0.15);
        border-radius: 16px;
        padding: 2rem;
        color: var(--primary-color);
        position: relative;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(74, 144, 226, 0.08);
        transition: all 0.3s ease;
    }

    .info-reclamos .alert-info::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%234a90e2" fill-opacity="0.03"><circle cx="20" cy="20" r="3"/></g></svg>');
        animation: float 15s ease-in-out infinite;
        z-index: 0;
    }

    .info-reclamos .alert-info:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 35px rgba(74, 144, 226, 0.12);
        border-color: rgba(74, 144, 226, 0.25);
    }

    .info-reclamos .alert-info h6 {
        color: var(--primary-color);
        font-weight: 700;
        font-size: 1.2rem;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        position: relative;
        z-index: 2;
    }

    .info-reclamos .alert-info h6 i {
        color: var(--accent-color);
        font-size: 1.3rem;
        margin-right: 0.5rem;
    }

    .info-reclamos .alert-info p {
        color: var(--text-primary);
        font-size: 1rem;
        line-height: 1.6;
        margin: 0;
        position: relative;
        z-index: 2;
        font-weight: 400;
    }

    .student-info-card {
        border: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 2rem;
    }

    .student-info-card .card-header {
        background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-light) 100%);
        color: white;
        font-weight: 600;
        border: none;
    }

    .category-section,
    .template-section {
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
        color: white;
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 2.5rem;
        margin-bottom: 2rem;
        box-shadow: 0 15px 40px rgba(45, 59, 128, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    .category-section::before,
    .template-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg width="50" height="50" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%234a90e2" fill-opacity="0.02"><circle cx="25" cy="25" r="3"/></g></svg>');
        animation: float 20s ease-in-out infinite;
        z-index: 0;
    }

    .category-section > *,
    .template-section > * {
        position: relative;
        z-index: 2;
    }

    .category-section:hover,
    .template-section:hover {
        box-shadow: 0 20px 50px rgba(45, 59, 128, 0.3);
        transform: translateY(-3px);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .template-card {
        border: 2px solid #e9ecef;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-bottom: 1rem;
    }

    .template-card:hover {
        border-color: var(--accent-color);
        box-shadow: 0 6px 20px rgba(74, 144, 226, 0.2);
        transform: translateY(-2px);
    }

    .template-card.selected {
        border-color: var(--accent-color);
        background: linear-gradient(135deg, var(--accent-color), var(--primary-light));
        color: white;
        box-shadow: 0 8px 25px rgba(74, 144, 226, 0.25);
    }

    .template-card .card-header {
        background-color: #f8f9fa;
        border-bottom: 1px solid #dee2e6;
        padding: 0.75rem 1rem;
        font-weight: 600;
    }

    .template-card.selected .card-header {
        background: linear-gradient(135deg, var(--accent-color), var(--primary-light));
        color: white;
    }

    .template-card.selected .card-body .card-text {
        color: white !important;
    }

    .btn-search {
        background: linear-gradient(45deg, var(--accent-color), var(--primary-light));
        border: none;
        color: white;
        padding: 0.875rem 2.5rem;
        border-radius: 50px;
        font-weight: 600;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
    }

    .btn-search::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.6s ease;
    }

    .btn-search:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(74, 144, 226, 0.4);
        color: white;
    }

    .btn-search:hover::before {
        left: 100%;
    }

    .btn-create-ticket {
        background: linear-gradient(45deg, var(--success-color), var(--success-light));
        border: none;
        color: white;
        padding: 1rem 3rem;
        border-radius: 50px;
        font-weight: 700;
        font-size: 1.1rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
        min-width: 250px;
    }

    .btn-create-ticket::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.6s ease;
    }

    .btn-create-ticket:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(40, 167, 69, 0.4);
        color: white;
    }

    .btn-create-ticket:hover::before {
        left: 100%;
    }

    .loading-spinner {
        display: none;
        width: 20px;
        height: 20px;
        border: 2px solid #f3f3f3;
        border-top: 2px solid #007bff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-right: 10px;
    }

    @keyframes spin
    {
        0% {
            transform: rotate(0deg);
        }

            100% {
                transform: rotate(360deg);
            }
        }

        .alert-info {
            background-color: #e3f2fd;
            border-color: #bbdefb;
            color: #1976d2;
        }

        .form-control:focus {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
        }

        .form-select:focus {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
        }

        .file-upload-area {
            border: 2px dashed #dee2e6;
            border-radius: 8px;
            padding: 2rem;
            text-align: center;
            background-color: #f8f9fa;
            transition: all 0.3s ease;
        }

        .file-upload-area:hover {
            border-color: var(--accent-color);
            background-color: rgba(74, 144, 226, 0.05);
        }

        .file-upload-area.dragover {
            border-color: var(--accent-color);
            background-color: rgba(74, 144, 226, 0.1);
        }

        .section-title {
            font-size: 1.4rem;
            font-weight: 700;
            color: white;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            padding: 1rem 1.5rem;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            border-left: 4px solid rgba(255, 255, 255, 0.5);
            position: relative;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .section-title::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
            border-radius: 12px;
        }

        .section-title i {
            margin-right: 0.75rem;
            color: rgba(255, 255, 255, 0.9);
            font-size: 1.5rem;
            position: relative;
            z-index: 2;
        }

        .section-title span {
            position: relative;
            z-index: 2;
        }

        .template-content {
            background-color: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            padding: 1rem;
            font-family: 'Courier New', monospace;
            font-size: 0.9rem;
            max-height: 200px;
            overflow-y: auto;
        }
    