/**
 * Monogram Dashboard Styles
 * Extracted from inline styles, standardized with NWCA green theme
 * CSS Variables for maintainability
 */

/* ============================================
   CSS Variables - NWCA Green Theme
   ============================================ */
:root {
    /* Primary Colors - NWCA Green */
    --nwca-green: #2d5f3f;
    --nwca-green-dark: #234a31;
    --nwca-green-light: #3a7c52;
    --nwca-green-hover: #2f661e;

    /* Neutral Colors */
    --bg-light: #f9fbf8;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --border-dark: #e0e0e0;

    /* Text Colors */
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --text-light: #4b5563;

    /* Status Colors */
    --success: #059669;
    --success-bg: #d1fae5;
    --success-text: #065f46;
    --info: #2563eb;
    --info-bg: #dbeafe;
    --info-text: #1e40af;
    --warning-bg: #fef3c7;
    --warning-text: #92400e;
    --danger: #dc2626;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* ============================================
   Reset & Base
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-light);
    padding-top: 210px;
}

/* ============================================
   Fixed Header
   ============================================ */
.dashboard-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Contact Bar */
.header-contact-bar {
    background: var(--nwca-green);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.contact-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Navigation Bar */
.header-nav {
    background: var(--bg-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-dark);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
}

.main-nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: color var(--transition-fast);
}

.main-nav-links a:hover {
    color: var(--nwca-green-hover);
}

/* Context Bar */
.context-bar {
    background: linear-gradient(135deg, var(--nwca-green), var(--nwca-green-dark));
    color: white;
    padding: 20px 0;
}

.context-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.context-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.breadcrumb a:hover {
    opacity: 1;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.quick-actions {
    display: flex;
    gap: 10px;
}

.quick-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.quick-btn-primary {
    background: var(--bg-white);
    color: var(--nwca-green);
    border: none;
}

.quick-btn-primary:hover {
    background: #f3f4f6;
}

/* ============================================
   Main Content
   ============================================ */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px;
}

/* Dashboard Card */
.dashboard-card {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   Filters Section
   ============================================ */
.filters-section {
    padding: 1.25rem;
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border-light);
}

.filters-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr repeat(2, 1fr) auto;
    gap: 1rem;
    align-items: end;
}

.filter-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    font-size: 14px;
    background: var(--bg-white);
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--nwca-green);
    box-shadow: 0 0 0 3px rgba(45, 95, 63, 0.1);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    padding: 0.625rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background: var(--nwca-green);
    color: white;
}

.btn-primary:hover {
    background: var(--nwca-green-dark);
}

.btn-outline {
    background: var(--bg-white);
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
}

.btn-outline:hover {
    background: var(--bg-gray);
}

/* ============================================
   Table
   ============================================ */
.table-container {
    overflow-x: auto;
}

#monogramsTable {
    width: 100%;
    border-collapse: collapse;
}

#monogramsTable thead tr {
    background: var(--bg-gray);
    border-bottom: 2px solid var(--border-light);
}

#monogramsTable th {
    padding: 0.875rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

#monogramsTable td {
    padding: 0.875rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
}

#monogramsTable tbody tr:hover {
    background: var(--bg-gray);
}

.order-link {
    color: var(--nwca-green);
    text-decoration: none;
    font-weight: 500;
}

.order-link:hover {
    text-decoration: underline;
    color: var(--nwca-green-dark);
}

/* ============================================
   Badges
   ============================================ */
.badge {
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-secondary {
    background: var(--border-light);
    color: var(--text-light);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info-text);
}

.badge-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
}

/* ============================================
   Action Buttons
   ============================================ */
.action-btn {
    padding: 0.375rem 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    background: transparent;
    color: var(--text-muted);
}

.action-btn:hover {
    background: #f3f4f6;
    color: var(--text-primary);
}

.action-btn.edit:hover {
    color: var(--nwca-green);
}

.action-btn.print:hover {
    color: var(--success);
}

.action-btn.done:hover {
    color: var(--info);
}

.action-btn.delete:hover {
    color: var(--danger);
}

/* ============================================
   Table Footer / Pagination
   ============================================ */
.table-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ============================================
   Loading State
   ============================================ */
.loading {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Toast Notification
   ============================================ */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-medium);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--info); }

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .filters-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 180px;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        display: none;
    }
}
