* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #E8B4B8 0%, #d4a5a8 100%);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.login-box h1 {
    font-size: 2.5rem;
    color: #E8B4B8;
    margin-bottom: 8px;
}

.login-box h2 {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    font-weight: 500;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #E8B4B8;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #E8B4B8 0%, #d4a5a8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 180, 184, 0.4);
}

.login-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #999;
}

/* Admin Dashboard */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.mobile-overlay {
    display: none;
}

.mobile-topbar {
    display: none;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #2c2c2c 0%, #1a1a1a 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h1 {
    font-size: 1.8rem;
    color: #E8B4B8;
    margin-bottom: 4px;
}

.sidebar-header p {
    font-size: 0.9rem;
    color: #aaa;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-item span {
    margin-right: 12px;
    font-size: 1.2rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-item.active {
    background: rgba(232, 180, 184, 0.15);
    border-left-color: #E8B4B8;
    color: white;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer p {
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: #aaa;
}

.btn-logout {
    display: block;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
    background: #f5f5f5;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.content-header h2 {
    font-size: 2rem;
    color: #333;
}

.filters {
    display: flex;
    gap: 12px;
}

.filters input,
.filters select {
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.date-filters {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    background: white;
    padding: 6px;
    border-radius: 30px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.shortcut-group {
    display: flex;
    gap: 4px;
}

.btn-date-shortcut {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-date-shortcut:hover {
    color: #E8B4B8;
    background: rgba(232, 180, 184, 0.1);
}

.btn-date-shortcut.active {
    background: #E8B4B8;
    color: white;
    box-shadow: 0 2px 8px rgba(232, 180, 184, 0.4);
}

.date-divider {
    width: 1px;
    height: 24px;
    background: #e0e0e0;
    margin: 0 8px;
}

.date-filters input[type="date"] {
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 0.9rem;
    color: #333;
    outline: none;
    cursor: pointer;
}

.btn-refresh,
.btn-action,
.btn-confirm {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-refresh {
    background: #E8B4B8;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-refresh:hover {
    background: #d4a5a8;
}

.refresh-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

.btn-action {
    background: #f0f0f0;
    color: #333;
}

.btn-confirm {
    background: #4CAF50;
    color: white;
}

/* Table */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    /* Fix horizontal overflowing */
    max-width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f8f8f8;
}

.data-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.data-table tbody tr:hover {
    background: #fafafa;
}

.loading,
.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.badge {
    display: inline-block;
    background: #E8B4B8;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.whatsapp-link {
    color: #25D366;
    text-decoration: none;
}

.whatsapp-link:hover {
    text-decoration: underline;
}

/* Stats */
.stats {
    display: flex;
    gap: 20px;
}

.stat-box {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #E8B4B8;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 4px;
}

/* Availability Tab Styles */
.availability-container {
    max-width: 900px;
}

.settings-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.settings-section h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 8px;
}

.section-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Days Grid */
.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.day-checkbox {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.day-checkbox:hover {
    border-color: #E8B4B8;
    background: #fef9fa;
}

.day-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #E8B4B8;
}

.day-checkbox input[type="checkbox"]:checked+span {
    font-weight: 600;
    color: #E8B4B8;
}

.day-checkbox span {
    font-size: 0.95rem;
    color: #333;
}

/* Time Slot Management */
.add-slot-section {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
}

.add-slot-section input[type="time"] {
    flex: 1;
    max-width: 200px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.btn-add-slot {
    padding: 12px 24px;
    background: #E8B4B8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-slot:hover {
    background: #d4a5a8;
    transform: translateY(-1px);
}

.time-slots-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.time-slot-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: white;
    border: 2px solid #E8B4B8;
    border-radius: 8px;
    transition: all 0.2s;
}

.time-slot-item:hover {
    box-shadow: 0 4px 8px rgba(232, 180, 184, 0.2);
}

.time-slot-time {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.btn-delete-slot {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    transition: transform 0.2s;
}

.btn-delete-slot:hover {
    transform: scale(1.2);
}

.loading-slots {
    text-align: center;
    color: #999;
    padding: 20px;
    grid-column: 1 / -1;
}

/* Save Section */
.save-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-save {
    padding: 14px 32px;
    background: linear-gradient(135deg, #E8B4B8 0%, #d4a5a8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    line-height: 1;
}

.btn-save img {
    display: block;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 180, 184, 0.4);
}

.save-message {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 6px;
}

.save-message.success {
    background: #d4edda;
    color: #155724;
}

.save-message.error {
    background: #f8d7da;
    color: #721c24;
}