/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #6B1C23;
    /* Deep Burgundy - from logo text */
    --primary-dark: #4A1219;
    /* Darker Burgundy */
    --secondary-color: #3D1F1A;
    /* Rich Brown - from logo decorative element */
    --accent-color: #E8D4B8;
    /* Parchment/Tan - from logo background */
    --text-color: #3D2914;
    /* Dark Brown Text */
    --light-bg: #FDF5E6;
    /* Old Lace - warm cream background */
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --border-radius: 8px;
    --sidebar-width: 260px;
    --header-height: 60px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Admin Layout Wrapper */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background: var(--secondary-color);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    overflow-y: auto;
    z-index: 1000;
    transition: var(--transition);
}

.sidebar-header {
    padding: 20px;
    background: var(--accent-color);
    text-align: center;
}

.sidebar-header h2 {
    color: var(--white);
    margin: 0;
    font-size: 1.5rem;
}

.sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #47748b;
}

.sidebar ul li {
    padding: 0;
}

.sidebar ul li a {
    padding: 15px 25px;
    font-size: 1rem;
    display: block;
    color: #cbd5e1;
    /* Slate 300 */
}

.sidebar ul li a:hover,
.sidebar ul li.active a {
    color: var(--white);
    background: var(--primary-color);
}

.sidebar ul li a i {
    margin-right: 10px;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
    transition: var(--transition);
}

/* Top Bar */
.top-bar {
    height: var(--header-height);
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 900;
}

.toggle-btn {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.logout-btn {
    color: var(--danger);
}

/* Content Container */
.content-container {
    padding: 30px;
    flex: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 25px;
}

/* Forms */
form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    /* Important for width 100% inside container */
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

th,
td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

th {
    background-color: var(--light-bg);
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: #f8fafc;
}

/* Images */
img {
    max-width: 100%;
    display: block;
    border-radius: 4px;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.dashboard-stats .card {
    text-align: center;
}

.dashboard-stats h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.dashboard-stats p {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }

    .sidebar.active {
        margin-left: 0;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }

    /* .main-content.active {
       
    } */
}

/* =========================================
   Public Website Styles (Non-Admin)
   ========================================= */

/* Reuse Global Styles but specific specific containers */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Public Header */
body>header {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

body>header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

body>header h1 {
    color: var(--white);
    margin: 0;
    font-size: 1.5rem;
}

body>header nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    gap: 20px;
}

body>header nav ul li {
    display: inline;
}

body>header nav a {
    color: var(--light-bg);
    font-weight: 500;
    opacity: 0.9;
}

body>header nav a:hover {
    color: var(--white);
    opacity: 1;
}

/* Showcase / Hero Section */
.showcase {
    background: linear-gradient(rgba(44, 24, 16, 0.7), rgba(44, 24, 16, 0.7)), url('../images/lord_mahavir_hero.png');
    background-size: cover;
    background-position: center;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-bottom: 3rem;
    padding: 20px;
}

.showcase h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.showcase p {
    font-size: 1.2rem;
    max-width: 600px;
}

/* Room Cards (Public View) */
.room-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(139, 26, 26, 0.15);
}

.room-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.room-details {
    padding: 1.5rem;
}

.room-details h3 {
    margin-top: 0;
    color: var(--secondary-color);
}

.room-details .btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(139, 26, 26, 0.25);
}

.room-details .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 26, 26, 0.35);
}

@media(min-width: 768px) {
    .room-card {
        flex-direction: row;
    }

    .room-card img {
        width: 40%;
        height: auto;
    }

    .room-details {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--accent-color);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

footer a {
    color: var(--accent-color);
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-danger {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}