* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary: #000000;
    --secondary: #D4AF37;
    --accent: #FFD700;
    --light: #FFFFFF;
    --dark: #1a1a1a;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --sidebar: #000000;
    --bg-main: #f8f8f8;
    --text-primary: #000000;
    --text-secondary: #666666;
    --border: #e0e0e0;
    --card-bg: #FFFFFF;
    --hover: #f5f5f5;
}

[data-theme="dark"] {
    --primary: #D4AF37;
    --secondary: #FFD700;
    --light: #1a1a1a;
    --dark: #FFFFFF;
    --sidebar: #0a0a0a;
    --bg-main: #121212;
    --text-primary: #FFFFFF;
    --text-secondary: #b0b0b0;
    --border: #333333;
    --card-bg: #1e1e1e;
    --hover: #2a2a2a;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    background: var(--sidebar);
    color: var(--light);
    padding: 20px 0;
    transition: all 0.3s;
    border-right: 2px solid var(--secondary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 20px;
    border-bottom: 2px solid var(--secondary);
    margin-bottom: 20px;
}

.logo i {
    font-size: 32px;
    color: var(--secondary);
}

.logo h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--light);
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    list-style: none;
}

.nav-links li {
    padding: 14px 20px;
    transition: all 0.3s;
    margin: 5px 10px;
    border-radius: 8px;
}

.nav-links li.active {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.nav-links li:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateX(5px);
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.nav-links i {
    font-size: 18px;
    width: 24px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.top-header {
    background: var(--card-bg);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--secondary);
}

.header-title h2 {
    font-size: 26px;
    color: var(--text-primary);
    font-weight: 700;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.theme-toggle {
    background: var(--card-bg);
    border: 2px solid var(--secondary);
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: scale(1.05);
}

/* Content Area */
.content {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    border-color: var(--secondary);
}

.card-icon {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
}

.card-icon.gold {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.card-icon.black {
    background: var(--primary);
    color: var(--secondary);
}

.card-icon.white {
    background: var(--light);
    color: var(--primary);
    border: 2px solid var(--secondary);
}

.card-icon.success {
    background: var(--success);
    color: white;
}

.card-info h3 {
    font-size: 28px;
    margin-bottom: 5px;
    color: var(--text-primary);
    font-weight: 700;
}

.card-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Sections */
.section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid var(--border);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary);
}

.section-header h3 {
    font-size: 22px;
    color: var(--text-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3 i {
    color: var(--secondary);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--primary);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--hover);
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

tr:hover {
    background: var(--hover);
}

.status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status.available {
    background: #e8f6ef;
    color: var(--success);
}

.status.booked {
    background: #fdeaea;
    color: var(--danger);
}

.status.pending {
    background: #fef5e7;
    color: var(--warning);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Room Grid */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.room-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 3px solid var(--border);
    transition: all 0.3s;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.room-card.booked {
    border-color: var(--danger);
}

.room-card.pending {
    border-color: var(--warning);
}

.room-card.available {
    border-color: var(--success);
}

.room-card.selected {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.room-header {
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid var(--border);
    background: var(--hover);
}

.room-header h4 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--text-primary);
    font-weight: 700;
}

.room-header .room-type {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.room-body {
    padding: 20px;
}

.room-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.room-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
}

.room-actions {
    display: flex;
    gap: 8px;
}

.room-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 13px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 650px;
    padding: 35px;
    position: relative;
    animation: modalFade 0.3s;
    border: 2px solid var(--secondary);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalFade {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.close-modal:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary);
}

.modal-header h3 {
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 700;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border);
    gap: 10px;
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.tab.active {
    color: var(--primary);
    background: var(--secondary);
    border-bottom: 3px solid var(--secondary);
}

.tab:hover {
    background: var(--hover);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Login/Register Page */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    padding: 20px;
}

.auth-box {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 50px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
    border: 2px solid var(--secondary);
}

.auth-logo {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo i {
    font-size: 60px;
    color: var(--secondary);
    margin-bottom: 15px;
}

.auth-logo h1 {
    font-size: 32px;
    color: var(--text-primary);
    font-weight: 700;
}

.auth-logo span {
    color: var(--secondary);
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--border);
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--primary);
    border-color: var(--secondary);
}

/* Responsive */
@media (max-width: 992px) {
    body {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
    }
    
    .nav-links {
        display: flex;
        overflow-x: auto;
    }
    
    .nav-links li {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .room-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .auth-box {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .room-grid {
        grid-template-columns: 1fr;
    }
    
    .content {
        padding: 15px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}


/* Settings Page Specific Styles */
.price-input {
    width: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.price-input:focus {
    outline: none;
    border-color: var(--secondary);
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--secondary);
}

.form-group label {
    cursor: default;
}

.form-group label input[type="checkbox"] + span {
    cursor: pointer;
    user-select: none;
}

/* Tab improvements */
.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 0;
    border-bottom: 2px solid #eee;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab:hover {
    background: rgba(52, 152, 219, 0.1);
}

.tab.active {
    color: var(--secondary);
    border-bottom: 3px solid var(--secondary);
    background: rgba(52, 152, 219, 0.05);
}

.tab i {
    font-size: 16px;
}

/* Improved table for settings */
.table-container table input[type="number"] {
    width: 100%;
    max-width: 120px;
}

/* Permission icons */
.fas.fa-check-circle,
.fas.fa-times-circle {
    font-size: 20px;
}

/* Responsive improvements for settings */
@media (max-width: 768px) {
    .tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .tab {
        flex-shrink: 0;
    }
}


/* Additional status colors */
.status.confirmed {
    background: #d4edda;
    color: #155724;
}

.status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Button improvements */
.btn.btn-danger {
    background: var(--accent);
    color: white;
}

.btn.btn-danger:hover {
    background: #c0392b;
}

/* Modal improvements */
.modal {
    z-index: 3000;
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* Booking details styling */
#bookingDetailsContent p {
    margin: 8px 0;
    line-height: 1.8;
}

#bookingDetailsContent h4 {
    color: var(--primary);
    margin-top: 15px;
}

#bookingDetailsContent hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

/* Table action buttons */
table .btn {
    margin: 0 2px;
}

table td {
    vertical-align: middle;
}

/* Responsive table improvements */
@media (max-width: 768px) {
    .table-container {
        overflow-x: scroll;
    }
    
    table {
        min-width: 800px;
    }
}


/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Apply Animations to Elements */

/* Page Load Animations */
.main-content {
    animation: fadeIn 0.5s ease-out;
}

.sidebar {
    animation: fadeInLeft 0.4s ease-out;
}

.top-header {
    animation: fadeInDown 0.5s ease-out;
}

/* Card Animations */
.card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Section Animations */
.section {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.section:nth-of-type(1) { animation-delay: 0.2s; }
.section:nth-of-type(2) { animation-delay: 0.3s; }
.section:nth-of-type(3) { animation-delay: 0.4s; }
.section:nth-of-type(4) { animation-delay: 0.5s; }

/* Button Animations */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Room Card Animations */
.room-card {
    animation: scaleIn 0.5s ease-out;
    animation-fill-mode: both;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Table Row Animations */
tbody tr {
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
    transition: all 0.2s ease;
}

tbody tr:nth-child(1) { animation-delay: 0.05s; }
tbody tr:nth-child(2) { animation-delay: 0.1s; }
tbody tr:nth-child(3) { animation-delay: 0.15s; }
tbody tr:nth-child(4) { animation-delay: 0.2s; }
tbody tr:nth-child(5) { animation-delay: 0.25s; }

tbody tr:hover {
    background: var(--hover);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Modal Animations */
.modal {
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form Input Animations */
input, select, textarea {
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

/* Navigation Link Animations */
.nav-links li {
    transition: all 0.3s ease;
}

.nav-links li:hover {
    transform: translateX(10px);
    background: rgba(212, 175, 55, 0.1);
}

.nav-links li a {
    transition: all 0.3s ease;
}

/* Status Badge Animations */
.status {
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

.status:hover {
    transform: scale(1.1);
}

/* Dashboard Card Icon Animations */
.card-icon {
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    animation: pulse 1s infinite;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Notification Animation */
@keyframes slideInNotification {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Calendar Day Animation */
.calendar-day {
    animation: scaleIn 0.3s ease-out;
    animation-fill-mode: both;
}

.calendar-day:nth-child(8) { animation-delay: 0.05s; }
.calendar-day:nth-child(9) { animation-delay: 0.1s; }
.calendar-day:nth-child(10) { animation-delay: 0.15s; }

/* Auth Container Animation */
.auth-container {
    animation: fadeIn 0.6s ease-out;
}

.auth-box {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Page Transition */
.page-transition {
    animation: fadeIn 0.5s ease-out;
}

/* Hover Effects for Interactive Elements */
a, button, .clickable {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon Animations */
i {
    transition: all 0.3s ease;
}

.btn:hover i {
    transform: scale(1.2);
}

/* Tab Animations */
.tab {
    transition: all 0.3s ease;
    position: relative;
}

.tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.tab.active::after {
    width: 100%;
}

.tab:hover {
    transform: translateY(-2px);
}

/* Form Group Animation */
.form-group {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }

/* Sidebar Logo Animation */
.logo {
    animation: fadeInDown 0.6s ease-out;
}

.logo i {
    animation: rotate 2s ease-in-out infinite;
}

/* User Avatar Animation */
.user-avatar {
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Search Input Animation */
input[type="text"]:focus,
input[type="search"]:focus {
    width: 110%;
    transition: width 0.3s ease;
}

/* Dropdown Animation */
select {
    transition: all 0.3s ease;
}

select:hover {
    border-color: var(--secondary);
}

/* Checkbox Animation */
input[type="checkbox"] {
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked {
    animation: bounce 0.5s ease;
}

/* Progress Bar Animation */
@keyframes progress {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

.progress-bar {
    animation: progress 1s ease-out;
}

/* Skeleton Loading Animation */
@keyframes skeleton {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton 1.5s ease-in-out infinite;
}

/* Stagger Animation for Lists */
.stagger-item {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }

/* Ripple Effect */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.ripple:active::after {
    animation: ripple 0.6s ease-out;
}

/* Glow Effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Performance Optimization */
.card,
.room-card,
.btn,
.modal-content {
    will-change: transform;
}

/* Smooth transitions for theme switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Check-in Calendar Styles */
.calendar-grid {
    background: white;
    border-radius: 8px;
    padding: 15px;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px;
}

.calendar-day:not(.empty):hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: scale(1.05);
}

.calendar-day.empty {
    border: none;
    cursor: default;
}

.calendar-day.today {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.calendar-day.has-checkin {
    background: #e3f2fd;
    border-color: var(--info);
}

.calendar-day.today.has-checkin {
    background: var(--primary);
}

.checkin-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

.calendar-day.today .checkin-count {
    background: white;
    color: var(--primary);
}

/* Check-in Item Styles */
.checkin-item {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Enhancements for Check-in */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--danger);
}
