* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.navbar {
    background-color: white;
    padding: 15px 0;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;           /* adjust as you like */
    width: auto;
}


.nav-container h1 {
    color: #667eea;
    font-size: 24px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-links a:hover {
    background-color: #667eea;
    color: white;
}

.nav-links span {
    color: #666;
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.form-box {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-box h1 {
    color: #667eea;
    text-align: center;
    margin-bottom: 10px;
}

.form-box h2 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #5568d3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #e6f4ea;
    color: #1e4620;
    border: 1px solid #a8dfb2;
}

.alert-error {
    background-color: #fdecea;
    color: #611a15;
    border: 1px solid #f5c6cb;
}

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

.text-center {
    text-align: center;
    margin-top: 20px;
}

.text-center a {
    color: #667eea;
    text-decoration: none;
}

.text-center a:hover {
    text-decoration: underline;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
}

.dashboard-header h2 {
    color: #333;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.room-card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.room-card h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.room-details p {
    color: #666;
    margin-bottom: 10px;
}

.upcoming-bookings {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.upcoming-bookings h2 {
    color: #333;
    margin-bottom: 20px;
}

.bookings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

.bookings-table thead {
    background-color: #667eea;
    color: white;
}

.bookings-table th,
.bookings-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.bookings-table tbody tr:hover {
    background-color: #f8f9fa;
}

.cancelled-row {
    opacity: 0.6;
    background-color: #f8f9fa;
}

.cancelled-row td {
    text-decoration: line-through;
}

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.no-data {
    text-align: center;
    color: #666;
    padding: 40px;
    font-size: 18px;
}

.no-data a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.no-data a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .bookings-table {
        font-size: 12px;
    }
    
    .bookings-table th,
    .bookings-table td {
        padding: 8px;
    }
}

/* ===== ADMIN FEATURES CSS ===== */

.admin-notice {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    text-align: center;
}

.admin-notice strong {
    font-size: 16px;
}

.admin-notice a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

.admin-notice a:hover {
    color: #fff3cd;
}

.admin-link {
    background-color: #ff6b6b !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 5px !important;
    font-weight: bold !important;
}

.admin-link:hover {
    background-color: #ee5a52 !important;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.stat-card h3 {
    color: #666;
    font-size: 18px;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: #667eea;
    margin: 0;
}

.recent-bookings {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.recent-bookings h2 {
    color: #333;
    margin-bottom: 20px;
}

/* Download button styling */
.btn.btn-primary.download-btn {
    background-color: #28a745;
}

.btn.btn-primary.download-btn:hover {
    background-color: #218838;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 36px;
    }
}

.flash-container {
    position: fixed;
    top: 20px;           /* below navbar */
    right: 20px;
    z-index: 9999;
    max-width: 420px;
    width: calc(100% - 40px);
}

.alert {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.alert-info {
    background-color: #e3f2fd;
    color: #0b4f71;
    border: 1px solid #90caf9;
}

.alert-dismissible {
    position: relative;
    padding-right: 30px;
}

.alert-close {
    position: absolute;
    top: 4px;
    right: 8px;
    border: none;
    background: transparent;
    color: #0b4f71;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.alert-close:hover {
    color: #002c4f;
}

