/**
 * Merchant Panel Stylesheet
 * Independent from customer site styles
 */

:root {
    --merchant-primary: #0d6efd;
    --merchant-primary-dark: #0a58ca;
    --merchant-success: #198754;
    --merchant-danger: #dc3545;
    --merchant-warning: #ffc107;
    --merchant-info: #0dcaf0;
    --merchant-light: #f8f9fa;
    --merchant-dark: #212529;
    --merchant-gray: #6c757d;
}

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

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: var(--merchant-light);
}

.main-content {
    flex: 1 0 auto;
    padding-bottom: 2rem;
}

.merchant-footer {
    flex-shrink: 0;
}

/* Navigation */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid var(--merchant-light);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Stats Cards */
.border-start {
    border-left-width: 4px !important;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
}

/* Forms */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--merchant-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead {
    background-color: var(--merchant-light);
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    padding: 0.75rem;
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Alerts */
.alert {
    border-radius: 0.375rem;
    border: none;
    padding: 1rem 1.25rem;
}

/* Pagination */
.page-link {
    color: var(--merchant-primary);
}

.page-link:hover {
    color: var(--merchant-primary-dark);
}

.page-item.active .page-link {
    background-color: var(--merchant-primary);
    border-color: var(--merchant-primary);
}

/* Modals */
.modal-content {
    border-radius: 0.5rem;
    border: none;
}

.modal-header {
    border-bottom: 2px solid var(--merchant-light);
}

/* Dropdown */
.dropdown-menu {
    border-radius: 0.375rem;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Activity Photos */
.photo-preview {
    width: 150px;
    height: 150px;
    border-radius: 0.375rem;
    overflow: hidden;
    position: relative;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Time Slots */
.time-slot-row {
    margin-bottom: 1rem;
}

/* Status Badges */
.bg-success { background-color: var(--merchant-success) !important; }
.bg-danger { background-color: var(--merchant-danger) !important; }
.bg-warning { background-color: var(--merchant-warning) !important; }
.bg-info { background-color: var(--merchant-info) !important; }
.bg-primary { background-color: var(--merchant-primary) !important; }

/* Star Rating */
.bi-star-fill {
    color: var(--merchant-warning);
}

.bi-star {
    color: #dee2e6;
}

/* Review Reply */
.bg-success.bg-opacity-10 {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .table {
        font-size: 0.875rem;
    }
    
    .table th, .table td {
        padding: 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Login Page Specific */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--merchant-primary) 0%, var(--merchant-primary-dark) 100%);
}

.login-card {
    max-width: 450px;
    width: 100%;
}
