@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f5f5;
    color: #000;
    line-height: 1.6;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 30px;
}

/* Header */
.main-header {
    background: #000;
    border-bottom: 1px solid #333;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: opacity 0.3s;
    padding: 10px 5px;
}

.main-nav a:hover {
    opacity: 0.7;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #000;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    z-index: 9999;
    border-radius: 8px;
    margin-top: 5px;
    border: 1px solid #333;
}

.dropdown-content a {
    color: #fff;
    padding: 12px 18px;
    display: block;
    font-size: 14px;
}

.dropdown-content a:hover {
    background: #333;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.user-menu .btn-logout {
    background: #fff;
    color: #000;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.user-menu .btn-logout:hover {
    background: #f0f0f0;
}

/* Page Header */
.page-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 5px;
}

.page-header p {
    color: #666;
    font-size: 14px;
}

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

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: #000;
    color: #fff;
    border-color: #000;
}

.btn-primary:hover {
    background: #333;
    border-color: #333;
}

.btn-secondary {
    background: #fff;
    color: #000;
    border-color: #e0e0e0;
}

.btn-secondary:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
}

.btn-success {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

.btn-success:hover {
    background: #218838;
    border-color: #218838;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
}

.btn-link {
    color: #000;
    text-decoration: underline;
    font-weight: 500;
}

.btn-link:hover {
    opacity: 0.7;
}

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

.stat-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* Form Card */
.form-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #000;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #000;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.data-table th {
    background: #f8f8f8;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid #e0e0e0;
    color: #000;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.data-table tr:hover {
    background: #f8f8f8;
}

/* Status Badges */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-draft {
    background: #fff3cd;
    color: #856404;
}

.status-accepted {
    background: #d4edda;
    color: #155724;
}

.status-in_production {
    background: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-paid {
    background: #d4edda;
    color: #155724;
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-item {
    margin-bottom: 15px;
}

.detail-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 600;
}

.detail-value {
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

/* Breakdown Section */
.breakdown-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 30px;
}

.breakdown-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.breakdown-row.total-row {
    border-top: 2px solid #000;
    border-bottom: none;
    margin-top: 15px;
    padding-top: 15px;
    font-weight: 700;
    font-size: 18px;
}

/* Dashboard Sections */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.dashboard-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    color: #666;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Checkbox */
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-item label {
    cursor: pointer;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}
/* ========================================
   JOB STATUS BADGES
   ======================================== */

/* Base status badge styling */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

/* In Design - Purple */
.status-badge.status-in-design,
.status-in-design {
    background: #6f42c1 !important;
    color: white !important;
}

/* In Production (Pending) - Blue */
.status-badge.status-pending,
.status-pending {
    background: #17a2b8 !important;
    color: white !important;
}

/* Printed - Orange */
.status-badge.status-printed,
.status-printed {
    background: #fd7e14 !important;
    color: white !important;
}

/* Being Finished - Yellow */
.status-badge.status-being-finished,
.status-being-finished {
    background: #ffc107 !important;
    color: #333 !important; /* Dark text on yellow for readability */
}

/* Ready for Dispatch - Green */
.status-badge.status-ready-for-dispatch,
.status-ready-for-dispatch {
    background: #28a745 !important;
    color: white !important;
}

/* Done - Dark Green */
.status-badge.status-done,
.status-done {
    background: #155724 !important;
    color: white !important;
}

/* Completed (invoiced) - Dark Blue */
.status-badge.status-completed,
.status-completed {
    background: #004085 !important;
    color: white !important;
}

/* Quote Status Badges (existing - keep these) */
.status-badge.status-draft {
    background: #6c757d;
    color: white;
}

.status-badge.status-sent {
    background: #007bff;
    color: white;
}

.status-badge.status-accepted {
    background: #28a745;
    color: white;
}

.status-badge.status-rejected {
    background: #dc3545;
    color: white;
}

/* Invoice Status Badges (existing - keep these) */
.status-badge.status-paid {
    background: #28a745;
    color: white;
}

.status-badge.status-overdue {
    background: #dc3545;
    color: white;
}

/* Old job status - for backward compatibility */
.status-badge.status-in_production {
    background: #17a2b8;
    color: white;
}

/* Hover effect for status badges */
.status-badge:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* ========================================
   JOB STATUS COLORS REFERENCE
   ========================================
   
   In Design:          #6f42c1 (Purple)
   In Production:      #17a2b8 (Blue)
   Printed:            #fd7e14 (Orange)
   Being Finished:     #ffc107 (Yellow)
   Ready for Dispatch: #28a745 (Green)
   Done:               #155724 (Dark Green)
   Completed:          #004085 (Dark Blue)
   
   ======================================== */
