/* App Design System (no build step) */

:root {
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-dark: rgba(20, 20, 20, 0.5);

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-900: #0f172a;

    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;

    --green-50: #ecfdf5;
    --green-100: #dcfce7;
    --green-600: #16a34a;
    --green-700: #15803d;

    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-600: #dc2626;
    --red-700: #b91c1c;

    --yellow-50: #fffbeb;
    --yellow-100: #fef3c7;
    --yellow-400: #f59e0b;

    --purple-100: #f3e8ff;
    --purple-800: #5b21b6;

    --indigo-50: #eef2ff;
    --indigo-100: #e0e7ff;
    --indigo-600: #4f46e5;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(241,245,249,.5); }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,.5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(100,116,139,.7); }
.dark ::-webkit-scrollbar-track { background: rgba(30,41,59,.5); }
.dark ::-webkit-scrollbar-thumb { background: rgba(71,85,105,.5); }
.dark ::-webkit-scrollbar-thumb:hover { background: rgba(100,116,139,.7); }

/* Transitions & utilities */
.sidebar-transition { transition: transform .3s ease-in-out; }
.glass-card { transition: transform .12s, box-shadow .12s; }
.glass-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,.10); }
.fade-in { animation: fadeIn .3s ease-in; }
@keyframes fadeIn { from {opacity: 0; transform: translateY(-10px);} to {opacity: 1; transform: translateY(0);} }
.slide-in { animation: slideIn .3s ease-out; }
@keyframes slideIn { from { transform: translateX(-100%);} to { transform: translateX(0);} }

/* Spinner */
.spinner { border: 2px solid rgba(148,163,184,.2); border-top: 2px solid var(--indigo-600); border-radius: 50%; width: 20px; height: 20px; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0); } 100% { transform: rotate(360deg);} }

/* Focus */
:focus { outline: 3px solid rgba(99,102,241,.25); outline-offset: 2px; }
input:focus, button:focus { outline: 2px solid var(--blue-500); outline-offset: 2px; }

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 500; padding: .5rem 1rem; border-radius: .5rem; text-decoration: none; border: none; cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); }
.btn-secondary { background: #e5e7eb; color: #1f2937; }
.btn-secondary:hover { background: #d1d5db; }
.btn-success { background: var(--green-600); color: #fff; }
.btn-success:hover { background: var(--green-700); }
.btn-danger { background: var(--red-600); color: #fff; }
.btn-danger:hover { background: var(--red-700); }

/* Cards */
.card { background: #fff; border-radius: .75rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); border: 1px solid var(--slate-200); overflow: hidden; }
.card-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--slate-200); background: #fff; }
.card-body { padding: 1rem 1.5rem; }

/* Forms */
.form-label { display: block; font-size: .875rem; font-weight: 500; color: #374151; margin-bottom: .25rem; }
.form-input { width: 100%; padding: .5rem .75rem; border: 1px solid #d1d5db; border-radius: .5rem; background: #fff; color: #111827; transition: border-color .2s ease, box-shadow .2s ease; }
.form-input::placeholder { color: #9ca3af; }
.form-input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 2px rgba(59,130,246,.35); outline: none; }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table thead { background: var(--slate-100); }
.table th { padding: .75rem 1.5rem; text-align: left; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: #64748b; border-bottom: 1px solid var(--slate-200); }
.table td { padding: 1rem 1.5rem; white-space: nowrap; font-size: .875rem; color: #111827; border-bottom: 1px solid var(--slate-200); }
.table tbody tr:hover { background: var(--slate-100); }

/* Alerts */
.alert { padding: 1rem; border-radius: .75rem; box-shadow: 0 8px 24px rgba(15,23,42,.08); border-left: 4px solid transparent; transition: opacity .3s ease; background: #fff; }
.alert-success { background: var(--green-50); border-left-color: var(--green-600); color: #065f46; }
.alert-error { background: var(--red-50); border-left-color: var(--red-600); color: #7f1d1d; }
.alert-warning { background: var(--yellow-50); border-left-color: var(--yellow-400); color: #78350f; }
.alert-info { background: var(--blue-50); border-left-color: var(--blue-600); color: #1e3a8a; }

/* Badges / status */
.status-active, .status-inactive, .status-pending { display: inline-block; padding: .25rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.status-active { background: var(--green-100); color: #065f46; }
.status-inactive { background: var(--red-100); color: #7f1d1d; }
.status-pending { background: var(--yellow-100); color: #78350f; }

/* Action buttons */
.action-buttons { display: flex; gap: .25rem; }
.action-buttons button { padding: .5rem; border-radius: .5rem; background: transparent; transition: background-color .2s ease; border: none; cursor: pointer; }
.action-buttons button:hover { background: #f3f4f6; }

/* Modal animations */
#logout-modal:not(.hidden) { animation: modalFadeIn .2s ease-out; }
#logout-modal:not(.hidden) > div { animation: modalSlideIn .2s ease-out; }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlideIn { from { opacity: 0; transform: scale(.9) translateY(-10px);} to { opacity: 1; transform: scale(1) translateY(0);} }

/* Currency */
.currency::before { content: "₹"; margin-right: 2px; }

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.notification-badge[data-count="0"] {
    display: none !important;
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.notification-badge.new-notification {
    animation: badgePulse 0.6s ease-in-out;
}

/* Logo Styles */
.app-logo {
    transition: all 0.3s ease;
}

.app-logo img {
    transition: all 0.3s ease;
    object-fit: contain;
    display: block;
}

/* Ensure logos maintain aspect ratio */
.app-logo img[style*="height"] {
    width: auto !important;
    max-width: 100%;
}

/* Header Icon Animations */
.header-icon {
    transition: all 0.2s ease;
}

.header-icon:hover {
    transform: scale(1.05);
}

/* Profile Image Upload */
.profile-image-container {
    position: relative;
    display: inline-block;
}

.profile-image-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.profile-image-upload-btn:hover {
    background: #2563eb;
    transform: scale(1.1);
}

/* Profile Image Preview */
#profile-image-preview {
    transition: all 0.3s ease;
}

#profile-image-preview:hover {
    transform: scale(1.02);
}

/* File input styling */
input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Colorful Icon Hover Effects */
.text-blue-600:hover { color: #1d4ed8 !important; }
.text-purple-600:hover { color: #7c3aed !important; }
.text-yellow-600:hover { color: #d97706 !important; }
.text-green-600:hover { color: #059669 !important; }
.text-red-600:hover { color: #dc2626 !important; }

.hover\:bg-blue-50:hover { background-color: #eff6ff !important; }
.hover\:bg-purple-50:hover { background-color: #faf5ff !important; }
.hover\:bg-yellow-50:hover { background-color: #fffbeb !important; }
.hover\:bg-green-50:hover { background-color: #ecfdf5 !important; }
.hover\:bg-red-50:hover { background-color: #fef2f2 !important; }

.dark .hover\:bg-blue-900\/20:hover { background-color: rgba(30, 58, 138, 0.2) !important; }
.dark .hover\:bg-purple-900\/20:hover { background-color: rgba(88, 28, 135, 0.2) !important; }
.dark .hover\:bg-yellow-900\/20:hover { background-color: rgba(120, 53, 15, 0.2) !important; }
.dark .hover\:bg-green-900\/20:hover { background-color: rgba(20, 83, 45, 0.2) !important; }
.dark .hover\:bg-red-900\/20:hover { background-color: rgba(127, 29, 29, 0.2) !important; }

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Notice dropdown styles */
.notices-dropdown {
    max-height: 400px;
    overflow-y: auto;
}

.notices-dropdown::-webkit-scrollbar {
    width: 4px;
}

.notices-dropdown::-webkit-scrollbar-track {
    background: rgba(241,245,249,.3);
}

.notices-dropdown::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,.4);
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
    .mobile-hidden { display: none !important; }
}
@media (max-width: 768px) {
    .mobile-full { width: 100% !important; }
    .table-responsive { font-size: .875rem; }
    .table th, .table td { padding: .5rem .75rem; }
    .btn-primary, .btn-secondary, .btn-success, .btn-danger { padding: .25rem .75rem; font-size: .875rem; }
    
    /* Mobile notice dropdown */
    #notices-dropdown {
        width: 90vw;
        right: 5vw;
        left: 5vw;
    }
}/* Univ
ersity Status Styles */
.status-active {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    background-color: var(--green-100);
    color: var(--green-700);
}

.status-inactive {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    background-color: var(--red-100);
    color: var(--red-700);
}

/* Action buttons styling */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.action-buttons button {
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.action-buttons button:hover {
    background-color: var(--slate-100);
}

/* Form styling improvements */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--slate-300);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button styles */
.btn-primary {
    background-color: var(--blue-600);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--blue-700);
}

.btn-secondary {
    background-color: var(--slate-200);
    color: var(--slate-700);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--slate-300);
}

/* Card styles */
.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid var(--slate-200);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--slate-200);
}

/* Table styles */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--slate-700);
    background-color: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
}

.table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--slate-200);
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: var(--slate-50);
}

.table-responsive {
    overflow-x: auto;
}