:root {
    --primary: #003366; /* Kemenkeu Navy */
    --secondary: #D4AF37; /* Kemenkeu Gold */
    --accent: #0056b3;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --bg-light: #f4f7fa;
    --surface: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow: 0 10px 25px rgba(0, 51, 102, 0.1);
    --shadow-hover: 0 15px 35px rgba(0, 51, 102, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.4;
    overflow-x: hidden;
}

/* Login Page Styling */
.login-container {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 81, 0.6), rgba(0, 0, 81, 0.6)), url('../img/gkn_mamuju.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
    text-align: center;
}

.login-logo {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.login-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
}

.btn-login:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Navbar Styling */
.navbar {
    background: var(--primary);
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.navbar-brand img {
    height: 45px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    color: white;
    font-weight: 900;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: -0.5px;
}

.brand-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: white;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.navbar-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.user-badge {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-badge .name {
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
}

.user-badge .role {
    font-size: 0.7rem;
    color: var(--secondary);
    font-weight: 800;
    text-transform: uppercase;
}

.btn-login-nav {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.2);
}

.btn-login-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 51, 102, 0.3);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .navbar {
        padding: 0.5rem 5%;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
    }

    .navbar-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding: 20px 0;
        border-top: 1px solid #eee;
        margin-top: 10px;
    }

    .navbar-nav.active {
        display: flex !important;
    }

    .nav-link {
        width: 100%;
        padding: 12px 10px;
    }

    .nav-link::after {
        display: none;
    }

    .navbar-user-info {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        padding-top: 15px;
        border-top: 1px solid #eee;
        width: 100%;
        justify-content: space-between;
    }

    .user-badge {
        text-align: left;
    }
}

.logout-btn {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    color: #ff4d4d;
    transform: scale(1.1);
}

/* Table Responsive Utility */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 800px; /* Ensure table doesn't squash too much */
}

/* Main Content */
.main-content {
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Cards */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}

.room-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.room-img {
    height: 200px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.room-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.room-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary);
    backdrop-filter: blur(5px);
}

.room-body {
    padding: 1.5rem;
}

.room-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.room-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 6px;
}

.btn-book {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    text-align: center;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-book:hover {
    filter: brightness(1.1);
    letter-spacing: 0.5px;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.icon-blue { background: #3b82f6; }
.icon-green { background: #10b981; }
.icon-yellow { background: #f59e0b; }

.stat-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.stat-info p {
    color: #6b7280;
    font-size: 0.875rem;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.room-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.room-img {
    height: 180px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.room-body {
    padding: 1.5rem;
}

.room-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.room-info {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

.btn-book {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

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

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .login-card {
        max-width: 90%;
        padding: 30px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
