/* Main Styles for Mahraja Restaurant Admin Panel */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8E2140;
    --primary-dark: #701A32;
    --secondary-color: #1C3144;
    --secondary-dark: #0F1A24;
    --accent-color: #F1B24A;
    --accent-light: #F8D794;
    --light-color: #F5F5F5;
    --dark-color: #333;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --danger-color: #F44336;
    --border-radius: 10px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --card-shadow: 0 8px 24px rgba(149, 157, 165, 0.2);
    --transition: all 0.3s ease;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --header-height: 70px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f7fb;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* New Layout Structure */
.layout-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.sidebar-header h2 {
    margin: 0;
    color: white;
    font-size: 1.8rem;
    border: none;
    padding: 0;
}

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px 0;
}

.sidebar-menu {
    margin-bottom: 20px;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
    transition: var(--transition);
    font-weight: 500;
}

.sidebar-menu a i {
    margin-right: 15px;
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
}

.sidebar-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left: 3px solid var(--accent-color);
}

.sidebar-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left: 3px solid var(--accent-color);
}

.sidebar-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--accent-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

.sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* When sidebar is collapsed */
.sidebar-collapsed .sidebar-menu a span,
.sidebar-collapsed .reservation-toggle-wrapper h3,
.sidebar-collapsed .toggle-switch-label span:first-child,
.sidebar-collapsed #toggle-status,
.sidebar-collapsed .reservation-toggle-container {
    display: none;
}

.sidebar-collapsed .sidebar-menu a {
    justify-content: center;
    padding: 15px 0;
}

.sidebar-collapsed .sidebar-menu a i {
    margin-right: 0;
    font-size: 1.3rem;
}

.sidebar-collapsed .reservation-toggle-wrapper h3 {
    font-size: 0;
    margin: 0;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content-expanded {
    margin-left: var(--sidebar-collapsed-width);
}

/* Top Navbar */
.top-navbar {
    height: var(--header-height);
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 90;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-left h1 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-left: 15px;
    font-weight: 600;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    border-right: 1px solid #eee;
    padding-right: 20px;
}

.user-name {
    font-weight: 600;
    color: var(--secondary-color);
}

.logout-btn {
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: #f3f3f3;
}

.logout-btn i {
    margin-right: 8px;
}

.logout-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(142, 33, 64, 0.2);
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 25px;
    background-color: #f5f7fb;
    overflow-y: auto;
}

/* Reservation Toggle in Sidebar */
.reservation-toggle-wrapper {
    padding: 15px 20px;
}

.reservation-toggle-wrapper h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: white;
}

.reservation-toggle-container {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-switch-label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    width: 100%;
    justify-content: space-between;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin: 0 10px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--accent-color);
}

input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

#toggle-status {
    min-width: 40px;
    font-size: 0.8rem;
    text-align: center;
}

#toggle-status.enabled {
    color: var(--accent-light);
}

#toggle-status.disabled {
    color: #ff9e9e;
}

/* Overlay for mobile sidebar */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 95;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* Loading Indicator Enhancements */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666;
    gap: 10px;
}

.loading-indicator i {
    color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background-color: white;
    color: var(--secondary-color);
    font-size: 0.9rem;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.05);
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(149, 157, 165, 0.3);
}

.stat-card:nth-child(1) {
    border-top: 4px solid var(--secondary-color);
}

.stat-card:nth-child(2) {
    border-top: 4px solid var(--warning-color);
}

.stat-card:nth-child(3) {
    border-top: 4px solid var(--success-color);
}

.stat-card:nth-child(4) {
    border-top: 4px solid var(--danger-color);
}

.stat-card h3 {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-icon {
    position: absolute;
    bottom: -15px;
    right: -15px;
    opacity: 0.1;
    font-size: 5rem;
    color: var(--primary-color);
    z-index: 0;
}

.stat-card:nth-child(1) .stat-icon {
    color: var(--secondary-color);
}

.stat-card:nth-child(2) .stat-icon {
    color: var(--warning-color);
}

.stat-card:nth-child(3) .stat-icon {
    color: var(--success-color);
}

.stat-card:nth-child(4) .stat-icon {
    color: var(--danger-color);
}

/* Activity List */
.activity-list {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.activity-item {
    padding: 15px 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-bottom: 1px solid #eee;
}

.activity-item:last-child {
    border-bottom: none;
}

.time {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 80px;
}

/* Section headers with icons */
h2 i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Reservations Section */
.reservation-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-color);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

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

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.table-search {
    margin-bottom: 15px;
    position: relative;
    display: flex;
    align-items: center;
}

.table-search input {
    width: 100%;
    padding: 12px 15px;
    padding-right: 90px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.table-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 33, 49, 0.1);
}

.search-buttons {
    position: absolute;
    right: 5px;
    display: flex;
    gap: 5px;
}

.table-search button {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--secondary-color);
    transition: var(--transition);
}

.table-search button:hover {
    background-color: rgba(139, 33, 49, 0.1);
    color: var(--primary-color);
}

#clear-search-btn {
    color: #999;
}

#clear-search-btn:hover {
    color: var(--danger-color);
}

.table-search button i {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 250px;
    }
    
    .sidebar-menu a {
        padding: 10px 15px;
    }
    
    .sidebar-menu a i {
        margin-right: 10px;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 280px;
        --sidebar-collapsed-width: 0;
    }
    
    .sidebar {
        left: calc(-1 * var(--sidebar-width));
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-content-expanded {
        margin-left: 0;
    }
    
    .user-info {
        border-right: none;
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    .top-navbar {
        padding: 0 15px;
    }
    
    .navbar-left h1 {
        font-size: 1.2rem;
    }
    
    .navbar-right {
        gap: 10px;
    }
    
    .content-area {
        padding: 15px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

/* Preserve existing styles but enhance them */
h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
}

/* Table styles enhancement */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.reservations-table, 
.subscriptions-table {
    width: 100%;
    border-collapse: collapse;
}

.reservations-table th,
.reservations-table td,
.subscriptions-table th,
.subscriptions-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.reservations-table th,
.subscriptions-table th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
}

.reservations-table tbody tr,
.subscriptions-table tbody tr {
    transition: var(--transition);
}

.reservations-table tbody tr:hover,
.subscriptions-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.2rem;
    position: relative;
    transition: var(--transition);
}

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

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

.print-btn {
    color: var(--secondary-color);
}

.action-btn:hover:not(:disabled) {
    transform: scale(1.2);
}

.action-btn:disabled {
    cursor: not-allowed;
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 350px;
}

.notification {
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out forwards;
}

.notification-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.notification-icon {
    margin-right: 10px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-message {
    flex: 1;
}

/* Animations */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Status classes */
.status-pending {
    color: var(--warning-color);
}

.status-confirmed {
    color: var(--success-color);
}

.status-cancelled {
    color: var(--danger-color);
}

#current-reservation-status.enabled {
    color: var(--success-color);
}

#current-reservation-status.disabled {
    color: var(--danger-color);
}

/* Table containers */
.reservations-table-container,
.subscriptions-table-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 20px;
    margin-bottom: 30px;
}

/* Loader Animations */
.refresh-btn i,
.fa-spinner {
    animation: spin 1s linear infinite;
}

.refresh-btn.spinning i {
    animation: spin 1s linear infinite;
}

/* Reservations status card */
.reservations-status-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    overflow: hidden;
    border-left: 4px solid var(--accent-color);
}

.status-header {
    background-color: #f9f9f9;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.status-header h3 {
    margin: 0;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-header h3 i {
    color: var(--primary-color);
}

.status-content {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.status-info {
    flex: 1;
    min-width: 300px;
}

.status-info p {
    margin-bottom: 10px;
}

/* Table Header with Refresh Button */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.table-header h3 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.reservations-count {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    padding: 5px 10px;
    background-color: #f5f5f5;
    border-radius: var(--border-radius);
    margin-left: 10px;
}

.table-header {
    display: flex;
    align-items: center;
}

.table-header .left-section {
    display: flex;
    align-items: center;
    flex: 1;
}

.refresh-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.refresh-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Pagination improvements */
.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
}

.table-pagination button {
    padding: 8px 15px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.table-pagination button:not(:disabled):hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Improve pagination in mobile view */
@media (max-width: 768px) {
    .table-pagination {
        padding: 15px;
        background-color: white;
        border-radius: var(--border-radius);
        box-shadow: var(--card-shadow);
        margin-top: 15px;
        position: sticky;
        bottom: 15px;
        z-index: 10;
    }
    
    .table-pagination button {
        min-width: 100px;
        justify-content: center;
    }
    
    #page-info {
        font-weight: 600;
        color: var(--secondary-color);
    }
}

/* Newsletter card */
.newsletter-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    overflow: hidden;
}

.newsletter-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    padding: 15px 20px;
}

.newsletter-header h3 {
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.newsletter-form {
    padding: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 33, 49, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(142, 33, 64, 0.3);
}

.toggle-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(142, 33, 64, 0.3);
}

/* Gender cell styling */
.gender-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gender-cell i {
    font-size: 1.2rem;
}

.gender-cell i.fa-male {
    color: #4682B4;
}

.gender-cell i.fa-female {
    color: var(--primary-color);
}

.gender-cell i.fa-users {
    color: var(--accent-color);
}

.gender-cell i.fa-user-plus,
.gender-cell i.fa-user {
    color: var(--secondary-color);
}

/* Edit button styling */
.edit-btn {
    color: var(--accent-color);
}

.edit-btn:hover:not(:disabled) {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* Mobile reservation cards */
.reservations-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 0 16px 0;
}

.reservation-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    position: relative;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reservation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(149, 157, 165, 0.3);
}

.status-border-pending {
    border-left-color: var(--warning-color);
}

.status-border-confirmed {
    border-left-color: var(--success-color);
}

.status-border-cancelled {
    border-left-color: var(--danger-color);
}

.card-header {
    background-color: #f9f9f9;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.tracking-id {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-pending {
    background-color: rgba(255, 193, 7, 0.2);
    color: var(--warning-color);
}

.status-badge.status-confirmed {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--success-color);
}

.status-badge.status-cancelled {
    background-color: rgba(244, 67, 54, 0.2);
    color: var(--danger-color);
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.card-field i {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 4px;
}

.card-field label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.card-field p {
    margin: 0;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.95rem;
    word-break: break-word;
}

.card-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.card-row .card-field {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.card-row .card-field i {
    margin-bottom: 4px;
}

.card-actions {
    padding: 12px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.card-actions .action-btn {
    padding: 8px;
    font-size: 1.4rem;
}

/* Empty state styling */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #888;
    gap: 16px;
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    color: #ccc;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .table-responsive {
        border-radius: var(--border-radius);
        box-shadow: none;
        background-color: transparent;
    }
    
    .table-header {
        margin-bottom: 20px;
    }
    
    .reservations-table-container {
        padding: 0;
    }
    
    .reservations-table {
        display: none;
    }
    
    .reservations-cards {
        display: flex;
    }
    
    .card-field p {
        font-size: 0.9rem;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: white;
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* Form styles for modal */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 33, 49, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    padding-right: 40px;
}

.secondary-btn {
    background-color: #f3f3f3;
    color: var(--secondary-color);
    border: 1px solid #ddd;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

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

.reservation-details {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 15px 0;
    border-left: 3px solid var(--secondary-color);
}

.reservation-details p {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
}

.reservation-details span {
    font-weight: 600;
    color: var(--secondary-color);
}

#reservation-status.status-pending {
    color: var(--warning-color);
}

#reservation-status.status-confirmed {
    color: var(--success-color);
}

#reservation-status.status-cancelled {
    color: var(--danger-color);
}

@media (max-width: 576px) {
    .modal-content {
        max-width: 95%;
        margin: 10px;
    }
}

/* Time slots styling */
.booking-time-section {
    margin-top: 10px;
}

.booking-time-group {
    margin-bottom: 15px;
}

.booking-time-group h4 {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.booking-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
}

.time-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    font-size: 0.9rem;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: var(--transition);
}

.time-slot:hover {
    border-color: var(--accent-color);
    background-color: #fff5e0;
}

.time-slot.selected {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    font-weight: 600;
}

/* Guests selector styling */
.guests-selector {
    margin-top: 10px;
}

.guests-counter {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.counter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: #f0f0f0;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.counter-btn:hover {
    background-color: var(--accent-light);
    color: var(--secondary-color);
}

.counter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.guest-count-input {
    width: 60px;
    height: 42px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.guest-count-input:focus {
    outline: none;
}

/* Hide number input arrows */
.guest-count-input::-webkit-outer-spin-button,
.guest-count-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.guest-count-input[type=number] {
    -moz-appearance: textfield;
}

.guests-limit {
    margin-top: 5px;
    font-size: 0.8rem;
    color: #666;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #f0f0f0;
    color: var(--secondary-color);
    margin-left: 5px;
}

.tab-btn.active .badge {
    background-color: var(--primary-color);
    color: white;
} 