:root {
    --primary: #3498db;
    --secondary: #2ecc71;
    --danger: #e74c3c;
    --warning: #f39c12;
    --accent: #ff6d00;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --gray: #95a5a6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

.dark-mode {
    --primary: #4285f4;
    --secondary: #66bb6a;
    --danger: #ef5350;
    --warning: #ffa726;
    --accent: #ff8c42;
    --dark: #f7fafc;
    --light: #2d3748;
    --gray: #a0aec0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: var(--transition);
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.college-logo {
    width: 150px;
    height: 150px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.college-logo i {
    font-size: 4rem;
    color: var(--primary);
}

.loading-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    animation: fadeInOut 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes fadeInOut {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
    z-index: 0;
}

@keyframes float {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.login-box {
    background-color: var(--light);
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    z-index: 1;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s forwards 0.5s;
}

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

.college-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.college-brand i {
    font-size: 2.5rem;
    color: var(--primary);
}

.college-brand h2 {
    color: var(--dark);
    font-size: 1.5rem;
}

.login-box h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.login-box p {
    margin-bottom: 30px;
    color: var(--gray);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: var(--light);
    color: var(--dark);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    outline: none;
}

.hostel-type {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.hostel-option {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.hostel-option.selected {
    border-color: var(--primary);
    background-color: rgba(52, 152, 219, 0.1);
}

.boys-option.selected {
    border-color: var(--primary);
    background-color: rgba(52, 152, 219, 0.1);
}

.girls-option.selected {
    border-color: #e84393;
    background-color: rgba(232, 67, 147, 0.1);
}

.hostel-option i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.boys-option i {
    color: var(--primary);
}

.girls-option i {
    color: #e84393;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-success {
    background-color: var(--secondary);
    color: white;
}

.btn-success:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.btn-warning {
    background-color: var(--warning);
    color: white;
}

.btn-warning:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--gray);
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.login-footer {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--gray);
}

.admin-login-link {
    margin-top: 15px;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.9rem;
}

/* Admin Login Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--light);
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow);
    transform: scale(0.9);
    opacity: 0;
    animation: modalAppear 0.3s forwards;
}

@keyframes modalAppear {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

/* Main App Styles */
.app-container {
    display: none;
}

header {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: headerSlideDown 0.5s;
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.college-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.college-header i {
    font-size: 2rem;
}

.college-header h1 {
    font-size: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.warden-info {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-left: 10px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--dark);
    cursor: pointer;
    transition: transform 0.3s;
    background-size: cover;
    background-position: center;
}

.user-avatar:hover {
    transform: scale(1.1);
}

.logout-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.theme-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 15px;
}

nav {
    background-color: var(--light);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 75px;
    z-index: 99;
}

.nav-links {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links li {
    padding: 15px 20px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    margin-top: 20px;
}

.sidebar {
    background-color: var(--light);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 140px;
    animation: fadeInLeft 0.5s;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: var(--dark);
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    transition: transform 0.2s;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-value {
    font-weight: bold;
    color: var(--primary);
}

.content-area {
    background-color: var(--light);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 500px;
    animation: fadeInRight 0.5s;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-title {
    margin-bottom: 20px;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.tab.active {
    border-bottom: 3px solid var(--primary);
    color: var(--primary);
    font-weight: 500;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-content.active {
    display: block;
}

/* Mess Feedback Styles */
.feedback-form {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.feedback-form:hover {
    transform: translateY(-5px);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.rating {
    display: flex;
    gap: 5px;
    margin: 10px 0;
    direction: rtl;
}

.rating input {
    display: none;
}

.rating label {
    font-size: 1.8rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.rating label:hover,
.rating label:hover ~ label,
.rating input:checked ~ label {
    color: var(--warning);
    transform: scale(1.1);
}

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feedback-item {
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: slideInUp 0.5s;
}

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

.feedback-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.feedback-user {
    font-weight: bold;
    color: var(--dark);
}

.feedback-date {
    color: var(--gray);
    font-size: 0.9rem;
}

.feedback-rating {
    color: var(--warning);
    margin-bottom: 5px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.feedback-message {
    margin-bottom: 10px;
}

.feedback-response {
    padding: 10px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 5px;
    margin-top: 10px;
    font-style: italic;
    border-left: 3px solid var(--primary);
}

/* Leave Application Styles */
.leave-form {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.leave-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.leave-item {
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary);
    transition: transform 0.2s;
}

.leave-item:hover {
    transform: translateY(-2px);
}

.leave-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.leave-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-in-progress {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-resolved {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Student Management Styles */
.student-form {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.student-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.student-item {
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s;
}

.student-item:hover {
    transform: translateY(-2px);
}

.student-actions {
    display: flex;
    gap: 10px;
}

/* Hostel Report Styles */
.report-form {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.report-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.report-item {
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary);
    transition: transform 0.2s;
}

.report-item:hover {
    transform: translateY(-2px);
}

.report-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.report-category {
    font-weight: bold;
    color: var(--primary);
}

/* Settings Styles */
.settings-section {
    margin-bottom: 30px;
    animation: fadeIn 0.5s;
}

.settings-section h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: var(--dark);
}

.profile-picture-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--dark);
    background-size: cover;
    background-position: center;
}

/* Help Styles */
.help-section {
    margin-bottom: 30px;
    animation: fadeIn 0.5s;
}

.help-section h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: var(--dark);
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    padding: 15px;
    max-height: 500px;
}

footer {
    background-color: var(--dark);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s, color 0.3s;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background-color: var(--secondary);
}

.notification.error {
    background-color: var(--danger);
}

/* NEW STYLES FOR ADDED FEATURES */

/* Enhanced Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.dashboard-card h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Emergency Button */
.emergency-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--danger);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    z-index: 1000;
    transition: all 0.3s;
    animation: pulse-emergency 2s infinite;
}

.emergency-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

@keyframes pulse-emergency {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* Room Allocation */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.room-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary);
}

.room-occupied {
    border-left-color: var(--danger);
}

.room-available {
    border-left-color: var(--secondary);
}

/* Attendance Calendar */
.attendance-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: 20px;
}

.calendar-day {
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.calendar-day.present {
    background-color: var(--secondary);
    color: white;
}

.calendar-day.absent {
    background-color: var(--danger);
    color: white;
}

/* Payment Status */
.payment-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.payment-paid {
    background-color: #d4edda;
    border-left: 4px solid var(--secondary);
}

.payment-pending {
    background-color: #fff3cd;
    border-left: 4px solid var(--warning);
}

.payment-overdue {
    background-color: #f8d7da;
    border-left: 4px solid var(--danger);
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card Styles */
.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-links {
        justify-content: center;
    }
    
    .nav-links a.active::after {
        bottom: -10px;
    }
    
    .sidebar {
        position: static;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .feedback-header, .leave-header, .report-header {
        flex-direction: column;
    }
    
    .profile-picture-upload {
        flex-direction: column;
        text-align: center;
    }
    
    .hostel-type {
        flex-direction: column;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .emergency-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 10px;
    }
    
    .nav-links li {
        padding: 10px 15px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab {
        text-align: center;
    }
    
    .login-box {
        padding: 20px;
    }

    .room-grid {
        grid-template-columns: 1fr;
    }
}