/* ============================================
   HOTEL MANAGEMENT SYSTEM - MAIN STYLES
   Modern, Fast, Professional Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Luxury Hotel Colors - Inspired by Global Hotel Brands */
    --primary: #B8860B;          /* Dark Goldenrod - Luxury Gold */
    --primary-dark: #8B6914;     /* Darker Gold */
    --primary-light: #DAA520;    /* Goldenrod */
    --secondary: #2C3E50;        /* Navy Blue - Professional */
    --accent: #C9A959;           /* Lighter Gold - Accents */
    
    /* Neutral Colors */
    --dark: #1a1a1a;             /* Rich Black */
    --dark-light: #2d2d2d;       /* Charcoal */
    --gray: #6c757d;             /* Medium Gray */
    --gray-light: #e8e8e8;       /* Light Gray */
    --light: #f8f9fa;            /* Off White */
    --white: #ffffff;            /* Pure White */
    
    /* Status Colors */
    --success: #28a745;          /* Professional Green */
    --danger: #dc3545;           /* Professional Red */
    --warning: #ffc107;          /* Amber Warning */
    --info: #17a2b8;             /* Teal Info */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Borders */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    background: var(--light);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

body.rtl {
    direction: rtl;
    font-family: 'Tajawal', 'Plus Jakarta Sans', sans-serif;
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================
   MAIN CONTAINER
   ============================================ */

.main-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    width: 280px;
    background: var(--white);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    transition: var(--transition);
    overflow-y: auto;
    border-right: 1px solid var(--gray-light);
}

body.rtl .sidebar {
    left: auto;
    right: 0;
}

.sidebar-header {
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 3px solid var(--accent);
}

.sidebar-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sidebar-logo i {
    font-size: 32px;
}

.sidebar-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   NAVIGATION MENU
   ============================================ */

.nav-menu {
    padding: 20px 10px;
}

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

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 15px 10px;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-weight: 500;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transition: var(--transition);
    z-index: -1;
}

body.rtl .nav-link::before {
    left: auto;
    right: 0;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    transform: translateX(5px);
}

body.rtl .nav-link:hover,
body.rtl .nav-link.active {
    transform: translateX(-5px);
}

.nav-link i {
    font-size: 18px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

body.rtl .nav-link i {
    margin-right: 0;
    margin-left: 12px;
}

.nav-link .badge {
    margin-left: auto;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

body.rtl .nav-link .badge {
    margin-left: 0;
    margin-right: auto;
}

/* ============================================
   SUBMENU
   ============================================ */

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 35px;
}

body.rtl .submenu {
    padding-left: 0;
    padding-right: 35px;
}

.submenu.active {
    max-height: 1000px;
}

.submenu-link {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: var(--gray);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 3px;
}

.submenu-link:hover {
    color: var(--primary);
    background: rgba(184, 134, 11, 0.08);
    transform: translateX(5px);
}

body.rtl .submenu-link:hover {
    transform: translateX(-5px);
}

.submenu-link i {
    font-size: 8px;
    margin-right: 10px;
}

body.rtl .submenu-link i {
    margin-right: 0;
    margin-left: 10px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    flex: 1;
    margin-left: 280px;
    transition: var(--transition);
}

body.rtl .main-content {
    margin-left: 0;
    margin-right: 280px;
}

/* ============================================
   TOP BAR
   ============================================ */

.topbar {
    background: var(--white);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray-light);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title i {
    color: var(--primary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ============================================
   SEARCH BAR
   ============================================ */

.search-bar {
    position: relative;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 10px 15px 10px 45px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition-fast);
    background: var(--white);
}

body.rtl .search-input {
    padding: 10px 45px 10px 15px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 16px;
}

body.rtl .search-icon {
    left: auto;
    right: 15px;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */

.lang-switcher {
    display: flex;
    background: var(--light);
    border-radius: var(--radius);
    padding: 3px;
    gap: 3px;
}

.lang-btn {
    padding: 8px 15px;
    border: none;
    background: transparent;
    color: var(--gray);
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    color: var(--primary);
}

.lang-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   USER MENU
   ============================================ */

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: var(--light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.user-menu:hover {
    background: var(--gray-light);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.3);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}

.user-role {
    font-size: 11px;
    color: var(--gray);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
}

body.rtl .user-dropdown {
    right: auto;
    left: 0;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--light);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* ============================================
   CONTENT AREA
   ============================================ */

.content {
    padding: 30px;
}

.content-header {
    margin-bottom: 30px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    animation: fadeInUp 0.5s ease;
    border: 1px solid var(--gray-light);
}

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

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--primary);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    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-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4);
}

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

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

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

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

/* ============================================
   COMING SOON
   ============================================ */

.coming-soon {
    text-align: center;
    padding: 100px 20px;
}

.coming-soon-icon {
    font-size: 80px;
    color: var(--primary);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

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

.coming-soon-title {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.coming-soon-text {
    font-size: 18px;
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
    animation: fadeIn 0.5s ease;
}

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

.slide-in-left {
    animation: slideInLeft 0.5s ease;
}

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

.slide-in-right {
    animation: slideInRight 0.5s ease;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    body.rtl .sidebar {
        transform: translateX(100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    body.rtl .main-content {
        margin-right: 0;
    }
    
    .search-bar {
        width: 200px;
    }
}
