:root {
    --uniedu-primary: #4f46e5;
    --uniedu-primary-hover: #4338ca;
    --uniedu-secondary: #f43f5e;
    --uniedu-accent: #10b981;
    --uniedu-bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --uniedu-text-main: #1e293b;
    --uniedu-text-muted: #64748b;
    --uniedu-glass: rgba(255, 255, 255, 0.85);
    --uniedu-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.uniedu-form-container {
    max-width: 850px;
    margin: 3rem auto;
    padding: 3rem;
    border-radius: 24px;
    background: var(--uniedu-glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--uniedu-shadow-lg);
    color: var(--uniedu-text-main);
    font-family: 'Outfit', 'Inter', sans-serif;
}

.uniedu-form-container .form-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    text-align: center;
    background: linear-gradient(to right, #4f46e5, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.025em;
}

.uniedu-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.uniedu-form-container .form-group label,
.mockup-profile-container .form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--uniedu-text-main);
}

.uniedu-form-container .form-group input, 
.uniedu-form-container .form-group select, 
.uniedu-form-container .form-group textarea,
.mockup-profile-container .form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.uniedu-form-container .form-group input:focus,
.uniedu-form-container .form-group select:focus,
.uniedu-form-container .form-group textarea:focus,
.mockup-profile-container .form-group input:focus {
    outline: none;
    border-color: var(--uniedu-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    transform: translateY(-1px);
}

body .uniedu-form-container button.submit-btn,
body .mockup-profile-container button.submit-btn,
body input[type="submit"].submit-btn {
    width: auto !important;
    display: inline-block !important;
    padding: 0.8rem 1.75rem !important;
    margin-top: 1.5rem;
    border: none !important;
    border-radius: 10px !important;
    background-color: #4f46e5 !important;
    background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
    color: #ffffff !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.025em;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3) !important;
    text-align: center !important;
    text-shadow: none !important;
}

body .uniedu-form-container button.submit-btn:hover,
body .mockup-profile-container button.submit-btn:hover,
body input[type="submit"].submit-btn:hover {
    background-color: #4338ca !important;
    background: linear-gradient(135deg, #4338ca, #3730a3) !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4) !important;
}

/* REDESIGNED DASHBOARD */
.uniedu-dashboard-container {
    display: flex;
    width: 100%;
    max-width: 1550px;
    margin: 2rem auto;
    background: #f8fafc;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    font-family: 'Inter', sans-serif;
    min-height: 700px;
    box-sizing: border-box;
}

.dashboard-sidebar {
    width: 280px;
    background: #04142c !important;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 0;
    flex-shrink: 0;
}

.student-profile-mini {
    padding: 0 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.student-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid #6366f1;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.student-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    text-align: center;
}

.student-course-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
}

.dashboard-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-nav .nav-item .dashicons {
    margin-right: 14px;
    font-size: 20px;
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.dashboard-nav .nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(5px);
}

.dashboard-nav .nav-item.active {
    background: #6366f1;
    color: white;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.dashboard-nav .nav-item.active .dashicons {
    opacity: 1;
}

.logout-link {
    margin-top: 3rem;
    color: #f43f5e !important;
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.logout-link:hover {
    background: rgba(244, 63, 94, 0.1) !important;
    border-color: #f43f5e;
}

.dashboard-content {
    flex: 1;
    min-width: 0;
    padding: 3rem 50px;
    overflow-y: auto;
    background: #f8fafc;
    box-sizing: border-box;
}

.uniedu-dashboard-container .section-title {
    font-size: 2rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 2.5rem;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.uniedu-dashboard-container .section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #e2e8f0;
}

/* Summary Grid */
.uniedu-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.summary-card {
    background: white;
    padding: 1.5rem;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.card-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.card-info h4 {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
}

.card-info p {
    margin: 0.25rem 0 0;
    font-size: 1.25rem;
    font-weight: 900;
    color: #1e293b;
}

.dashboard-section {
    display: none;
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-section.active {
    display: block;
}

/* Profile Mockup Styles */
.mockup-profile-container {
    background: white;
    padding: 1rem;
    border-radius: 12px;
}

.mockup-header-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    border-bottom: 4px solid #1e293b;
    display: inline-block;
    padding-bottom: 5px;
}

.mockup-card-border {
    border: 2px solid #64748b;
    padding: 1.5rem;
    border-radius: 8px;
    background: white;
}

.mockup-section-label {
    background: #f8fafc;
    color: #4338ca;
    font-weight: 800;
    padding: 0.5rem 1rem;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.mockup-flex-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.mockup-info-table {
    flex: 1;
}

.mock-tr {
    display: flex;
    border-bottom: 1px solid #f1f5f9;
    padding: 0.6rem 0;
}

.mock-tr-split {
    display: flex;
    gap: 2rem;
}

.mock-tr-split .mock-tr {
    flex: 1;
}

.mock-td.label {
    width: 160px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 700;
}

.mock-td.value {
    flex: 1;
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 600;
}

.mockup-photo-box {
    width: 150px;
    height: 180px;
    border: 1px solid #e2e8f0;
    padding: 5px;
    background: white;
}

.mockup-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mockup-section-label.center {
    border-top: 2px solid #e2e8f0;
    margin-top: 1rem;
}

/* PROFESSIONAL PRINTABLE ID CARD */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

body button.print-id-btn {
    background-color: #10b981 !important;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2) !important;
}

body button.print-id-btn:hover {
    background-color: #059669 !important;
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3) !important;
}

.id-card-professional {
    width: 450px;
    height: 280px;
    background: white;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin: 0 auto;
}

.id-card-inner {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.id-card-header {
    background: #04142c !important;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 3px solid #6366f1;
}

.univ-logo-mock {
    width: 40px;
    height: 40px;
    background: #6366f1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.univ-name h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 900;
    color: white;
    letter-spacing: 0.05em;
}

.univ-name p {
    margin: 0;
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.id-card-main {
    flex: 1;
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.id-card-photo img {
    width: 100px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #f1f5f9;
}

.id-card-details {
    flex: 1;
}

.detail-item {
    margin-bottom: 0.75rem;
}

.detail-item label {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 800;
    margin-bottom: 2px;
}

.detail-item h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #0f172a;
    font-weight: 800;
}

.detail-item p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
}

.id-card-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qr-code-mock {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.validity label {
    display: block;
    font-size: 0.55rem;
    color: #94a3b8;
    font-weight: 800;
}

.validity p {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
}

.footer-right {
    text-align: center;
}

.signature-line {
    width: 100px;
    height: 1px;
    background: #cbd5e1;
    margin-bottom: 4px;
}

.footer-right p {
    margin: 0;
    font-size: 0.55rem;
    color: #94a3b8;
    font-weight: 700;
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    .id-card-printable-area, .id-card-printable-area * {
        visibility: visible;
    }
    .id-card-printable-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding-top: 20px;
    }
    .id-card-professional {
        box-shadow: none !important;
        border: 1px solid #000 !important;
        -webkit-print-color-adjust: exact;
        margin: 0 auto !important;
    }
}

/* RESPONSIVE TABLES & CARDS */
.uniedu-table-container {
    width: 100%;
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}

.uniedu-responsive-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.uniedu-responsive-table th {
    background: #0f172a;
    color: #ffffff;
    padding: 1rem 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.uniedu-responsive-table td {
    padding: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
    white-space: nowrap;
}

.uniedu-responsive-table tr:last-child td {
    border-bottom: none;
}

.uniedu-responsive-table tr:hover td {
    background: #f8fafc;
}

@media (max-width: 1024px) {
    .uniedu-dashboard-container {
        flex-direction: column;
        min-height: auto;
    }
    .dashboard-sidebar {
        width: 100%;
        padding: 1.5rem;
    }
    .student-profile-mini {
        padding: 0 1rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    .dashboard-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        padding: 0;
    }
    .dashboard-nav .nav-item {
        margin-bottom: 0;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    .logout-link {
        margin-top: 0;
    }
    .dashboard-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .dashboard-content {
        padding: 1.25rem;
    }
    .mockup-flex-row {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    .mockup-photo-box {
        width: 120px;
        height: 140px;
        margin: 0 auto;
    }
    .course-fee-breakdown-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem !important;
        gap: 1.25rem !important;
    }
    .course-fee-breakdown-card div {
        text-align: center !important;
        width: 100%;
    }
    .mock-tr-split {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    .mock-td.label {
        width: 130px;
    }
    .uniedu-summary-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    .id-card-professional {
        width: 100%;
        max-width: 380px;
        height: auto;
    }
    .id-card-main {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .id-card-photo img {
        width: 90px;
        height: 110px;
    }
    .uniedu-dashboard-container .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}
