/* 
 * Talabat Elite Pharma Services Theme
 * Professional orange-themed design for modern interfaces
 */

:root {
    /* Primary Talabat Orange Colors */
    --remix-primary: #ff5900;
    --remix-primary-light: #ff7a33;
    --remix-primary-dark: #e64f00;
    --remix-primary-gradient: linear-gradient(135deg, #ff5900 0%, #ff7a33 100%);
    
    /* Neutral Colors */
    --remix-background: #ffffff;
    --remix-background-soft: #fafbfc;
    --remix-background-alt: #fff8f2;
    --remix-card-background: #ffffff;
    --remix-text-primary: #1a1d29;
    --remix-text-secondary: #64748b;
    --remix-text-muted: #94a3b8;
    --remix-text-on-primary: #ffffff;
    
    /* Spacing and Layout */
    --remix-border-radius: 12px;
    --remix-border-radius-lg: 16px;
    --remix-border-radius-xl: 20px;
    
    /* Shadows */
    --remix-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --remix-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --remix-shadow-orange: 0 10px 25px rgba(255, 89, 0, 0.15);
    
    /* Transitions */
    --remix-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --remix-font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --remix-font-weight-medium: 500;
    --remix-font-weight-semibold: 600;
    --remix-font-weight-bold: 700;
}

/* Base Theme */
.remix-theme {
    font-family: var(--remix-font-family);
    color: var(--remix-text-primary);
    background-color: var(--remix-background-soft);
    line-height: 1.6;
}

/* Logo */
.remix-logo-large {
    height: 80px;
    filter: drop-shadow(0 4px 8px rgba(255, 89, 0, 0.2));
    transition: var(--remix-transition);
}

.remix-logo-large:hover {
    transform: scale(1.05);
}

/* Buttons */
.remix-btn-primary {
    background: var(--remix-primary-gradient);
    color: var(--remix-text-on-primary);
    border: none;
    border-radius: var(--remix-border-radius);
    padding: 12px 24px;
    font-weight: var(--remix-font-weight-medium);
    transition: var(--remix-transition);
    box-shadow: var(--remix-shadow-orange);
    cursor: pointer;
    font-family: var(--remix-font-family);
}

.remix-btn-primary:hover {
    background: linear-gradient(135deg, #e64f00 0%, #ff5900 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 89, 0, 0.25);
    color: var(--remix-text-on-primary);
}

/* Cards */
.remix-card {
    background: var(--remix-card-background);
    border-radius: var(--remix-border-radius-lg);
    box-shadow: var(--remix-shadow);
    padding: 24px;
    margin-bottom: 24px;
    transition: var(--remix-transition);
    border: 1px solid #e2e8f0;
}

.remix-card:hover {
    box-shadow: var(--remix-shadow-lg);
    transform: translateY(-4px);
}

/* Forms */
.remix-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--remix-border-radius);
    font-family: var(--remix-font-family);
    transition: var(--remix-transition);
    background: var(--remix-card-background);
    color: var(--remix-text-primary);
}

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

.remix-form-control::placeholder {
    color: var(--remix-text-muted);
}

/* Navigation */
.remix-navbar {
    background: var(--remix-card-background);
    box-shadow: var(--remix-shadow);
    padding: 16px 0;
}

.remix-navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--remix-text-primary);
    text-decoration: none;
    font-weight: var(--remix-font-weight-bold);
    font-size: 1.25rem;
    transition: var(--remix-transition);
}

.remix-navbar-brand:hover {
    color: var(--remix-primary);
}

/* Tables */
.remix-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--remix-card-background);
    border-radius: var(--remix-border-radius-lg);
    overflow: hidden;
    box-shadow: var(--remix-shadow);
}

.remix-table th {
    background: var(--remix-primary-gradient);
    color: var(--remix-text-on-primary);
    padding: 16px 20px;
    text-align: left;
    font-weight: var(--remix-font-weight-semibold);
}

.remix-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.remix-table tbody tr:hover {
    background: var(--remix-background-alt);
}

/* Utility classes */
.remix-text-primary { color: var(--remix-primary); }
.remix-text-muted { color: var(--remix-text-muted); }
.remix-bg-primary { background: var(--remix-primary-gradient); }

/* Responsive */
@media (max-width: 768px) {
    .remix-logo-large {
        height: 60px;
    }
    .remix-card {
        padding: 16px;
        margin-bottom: 16px;
    }
}

/* Enhanced Form Styles */
.talabat-form {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 89, 0, 0.05);
}

.talabat-form-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.talabat-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1d29;
    margin-bottom: 0.5rem;
}

.talabat-form-subtitle {
    color: #64748b;
    margin-bottom: 0;
}

.talabat-form-group {
    margin-bottom: 1.5rem;
}

.talabat-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a1d29;
    font-size: 0.875rem;
}

.talabat-form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-family: var(--remix-font-family);
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1a1d29;
}

.talabat-form-control:focus {
    outline: none;
    border-color: #ff5900;
    box-shadow: 0 0 0 3px rgba(255, 89, 0, 0.1);
    background: #ffffff;
}

.talabat-form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.talabat-form-control.is-valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.talabat-form-select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    appearance: none;
}

.talabat-form-help {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.talabat-form-error {
    font-size: 0.8125rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

.talabat-form-success {
    font-size: 0.8125rem;
    color: #10b981;
    margin-top: 0.25rem;
}

/* Enhanced Table Styles */
.talabat-table-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 89, 0, 0.05);
    overflow: hidden;
}

.talabat-table-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(255, 89, 0, 0.03) 0%, rgba(255, 89, 0, 0.01) 100%);
    border-bottom: 1px solid #f1f5f9;
}

.talabat-table-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1d29;
    margin-bottom: 0.25rem;
}

.talabat-table-subtitle {
    color: #64748b;
    margin-bottom: 0;
    font-size: 0.875rem;
}

.talabat-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.talabat-table th {
    background: #f8fafc;
    color: #374151;
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom: 1px solid #e5e7eb;
}

.talabat-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
    font-size: 0.875rem;
}

.talabat-table tbody tr {
    transition: all 0.2s ease;
}

.talabat-table tbody tr:hover {
    background: rgba(255, 89, 0, 0.02);
}

.talabat-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.talabat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.talabat-badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.talabat-badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.talabat-badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

.talabat-badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
}

.talabat-badge-primary {
    background: rgba(255, 89, 0, 0.1);
    color: #c2410c;
}

/* Action Buttons */
.talabat-btn-group {
    display: flex;
    gap: 0.5rem;
}

.talabat-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.talabat-btn-sm {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
}

.talabat-btn-primary {
    background: #ff5900;
    color: white;
}

.talabat-btn-primary:hover {
    background: #e64f00;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.talabat-btn-secondary {
    background: #6b7280;
    color: white;
}

.talabat-btn-secondary:hover {
    background: #4b5563;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.talabat-btn-success {
    background: #10b981;
    color: white;
}

.talabat-btn-success:hover {
    background: #059669;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.talabat-btn-danger {
    background: #ef4444;
    color: white;
}

.talabat-btn-danger:hover {
    background: #dc2626;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.talabat-btn-outline {
    background: transparent;
    border: 1px solid currentColor;
}

.talabat-btn-outline:hover {
    background: currentColor;
    color: white;
}

/* Pagination */
.talabat-pagination {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.talabat-pagination a,
.talabat-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.talabat-pagination a {
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.talabat-pagination a:hover {
    background: #ff5900;
    color: white;
    border-color: #ff5900;
}

.talabat-pagination .active span {
    background: #ff5900;
    color: white;
    border: 1px solid #ff5900;
}

/* Loading States */
.talabat-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.talabat-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #ff5900;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Search and Filters */
.talabat-search-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 89, 0, 0.05);
}

.talabat-search-box {
    position: relative;
    max-width: 400px;
}

.talabat-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.talabat-search-input:focus {
    outline: none;
    border-color: #ff5900;
    box-shadow: 0 0 0 3px rgba(255, 89, 0, 0.1);
}

.talabat-search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.talabat-filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.talabat-filter-tab {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.talabat-filter-tab:hover,
.talabat-filter-tab.active {
    background: #ff5900;
    color: white;
    border-color: #ff5900;
    text-decoration: none;
}
