/**
 * Ramses Clothing Ltd - Main Stylesheet
 * Black, Gold, White Theme
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --color-primary: #000000;
    --color-secondary: #1a1a1a;
    --color-accent: #d4af37;
    --color-accent-light: #f4d03f;
    --color-accent-dark: #b8860b;
    --color-white: #ffffff;
    --color-light: #f8f9fa;
    --color-gray: #6c757d;
    --color-gray-light: #e9ecef;
    --color-gray-dark: #343a40;
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-warning: #ffc107;
    --color-info: #17a2b8;
    
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-light);
    color: var(--color-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--color-accent-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 20px;
}

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

.login-box {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.login-header {
    background: var(--color-primary);
    padding: 40px 30px;
    text-align: center;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    font-weight: bold;
    color: var(--color-primary);
}

.login-title {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-accent);
    margin-bottom: 5px;
}

.login-subtitle {
    color: var(--color-gray-light);
    font-size: 14px;
}

.login-body {
    padding: 40px 30px;
}

.login-footer {
    text-align: center;
    padding: 20px;
    background: var(--color-gray-light);
    font-size: 13px;
    color: var(--color-gray);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--color-gray-light);
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: var(--transition);
    background: var(--color-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-control::placeholder {
    color: var(--color-gray);
}

.form-control:disabled {
    background: var(--color-gray-light);
    cursor: not-allowed;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-hint {
    font-size: 12px;
    color: var(--color-gray);
    margin-top: 5px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    color: var(--color-white);
}

.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-primary);
}

.btn-success {
    background: var(--color-success);
    color: var(--color-white);
}

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

.btn-danger {
    background: var(--color-danger);
    color: var(--color-white);
}

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

.btn-warning {
    background: var(--color-warning);
    color: var(--color-primary);
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: var(--color-primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}

/* ============================================
   LAYOUT - SIDEBAR & MAIN
   ============================================ */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--color-primary);
    color: var(--color-white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: var(--transition);
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sidebar-logo {
    width: 45px;
    height: 45px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--color-primary);
    font-size: 18px;
}

.sidebar-brand-text {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-accent);
}

.sidebar-user {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    width: 45px;
    height: 45px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--color-primary);
}

.sidebar-user-info {
    flex: 1;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 14px;
}

.sidebar-user-role {
    font-size: 12px;
    color: var(--color-accent);
}

/* Navigation */
.sidebar-nav {
    padding: 15px 0;
}

.nav-section {
    margin-bottom: 15px;
}

.nav-section-title {
    padding: 10px 20px;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--color-gray);
    letter-spacing: 1px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    border-left: 3px solid transparent;
    text-decoration: none;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-accent);
    border-left-color: var(--color-accent);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.nav-badge {
    margin-left: auto;
    background: var(--color-accent);
    color: var(--color-primary);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Header */
.top-header {
    background: var(--color-white);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--color-primary);
}

.page-title {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-primary);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-gray);
}

.breadcrumb a {
    color: var(--color-gray);
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

.header-btn:hover {
    background: var(--color-accent);
    color: var(--color-primary);
}

.header-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--color-danger);
    color: var(--color-white);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

.user-menu-btn {
    background: var(--color-accent);
    color: var(--color-primary);
    font-weight: bold;
}

.user-menu-btn:hover {
    background: var(--color-accent-dark);
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 30px;
}

/* Footer */
.main-footer {
    background: var(--color-white);
    padding: 20px 30px;
    border-top: 1px solid var(--color-gray-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--color-gray);
}

/* ============================================
   DROPDOWN
   ============================================ */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    margin-top: 10px;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--color-gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-header h4 {
    font-size: 16px;
    font-weight: 600;
}

.dropdown-header a {
    font-size: 12px;
    color: var(--color-accent-dark);
}

.dropdown-body {
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--color-gray-light);
    text-align: center;
}

.dropdown-footer a {
    color: var(--color-accent-dark);
    font-size: 13px;
    font-weight: 500;
}

.dropdown-user {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-user-avatar {
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--color-primary);
    font-size: 18px;
}

.dropdown-user-info {
    flex: 1;
}

.dropdown-user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-primary);
}

.dropdown-user-role {
    font-size: 12px;
    color: var(--color-gray);
}

.dropdown-divider {
    height: 1px;
    background: var(--color-gray-light);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--color-light);
    color: var(--color-accent-dark);
}

.dropdown-item.text-danger {
    color: var(--color-danger);
}

.dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Notification Items */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--color-gray-light);
    transition: var(--transition);
}

.notification-item:hover {
    background: var(--color-light);
}

.notification-item.unread {
    background: rgba(212, 175, 55, 0.05);
}

.notification-icon {
    width: 36px;
    height: 36px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 3px;
}

.notification-message {
    font-size: 12px;
    color: var(--color-gray);
    margin-bottom: 5px;
}

.notification-time {
    font-size: 11px;
    color: var(--color-gray);
}

.empty-state {
    padding: 30px;
    text-align: center;
    color: var(--color-gray);
}

.empty-state i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

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

.card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-primary);
}

.card-tools {
    display: flex;
    gap: 10px;
}

.card-body {
    padding: 25px;
}

.card-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--color-gray-light);
    background: var(--color-light);
}

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.primary {
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-accent-dark);
}

.stat-icon.success {
    background: rgba(40, 167, 69, 0.2);
    color: var(--color-success);
}

.stat-icon.warning {
    background: rgba(255, 193, 7, 0.2);
    color: var(--color-warning);
}

.stat-icon.danger {
    background: rgba(220, 53, 69, 0.2);
    color: var(--color-danger);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--color-gray);
    margin-top: 5px;
}

.stat-change {
    font-size: 12px;
    margin-top: 8px;
}

.stat-change.positive {
    color: var(--color-success);
}

.stat-change.negative {
    color: var(--color-danger);
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -12px;
}

.col {
    flex: 1;
    padding: 12px;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 12px;
}

.col-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 12px;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 12px;
}

.col-8 {
    flex: 0 0 66.667%;
    max-width: 66.667%;
    padding: 12px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 12px;
}

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

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

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-gray-light);
}

.table th {
    background: var(--color-light);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--color-gray);
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background: var(--color-light);
}

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

.table-actions {
    display: flex;
    gap: 8px;
}

.table-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
}

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

.badge-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
}

.badge-assigned {
    background: rgba(23, 162, 184, 0.2);
    color: #0c5460;
}

.badge-progress {
    background: rgba(0, 123, 255, 0.2);
    color: #004085;
}

.badge-ready {
    background: rgba(111, 66, 193, 0.2);
    color: #4a2c7a;
}

.badge-completed {
    background: rgba(40, 167, 69, 0.2);
    color: #155724;
}

.badge-collected {
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-accent-dark);
}

.badge-cancelled {
    background: rgba(220, 53, 69, 0.2);
    color: #721c24;
}

/* Payment Status */
.badge-payment-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
}

.badge-payment-partial {
    background: rgba(23, 162, 184, 0.2);
    color: #0c5460;
}

.badge-payment-paid {
    background: rgba(40, 167, 69, 0.2);
    color: #155724;
}

/* Priority */
.badge-priority-low {
    background: var(--color-gray-light);
    color: var(--color-gray);
}

.badge-priority-normal {
    background: rgba(23, 162, 184, 0.2);
    color: #0c5460;
}

.badge-priority-high {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
}

.badge-priority-urgent {
    background: rgba(220, 53, 69, 0.2);
    color: #721c24;
}

/* Stock Status */
.badge-stock-good {
    background: rgba(40, 167, 69, 0.2);
    color: #155724;
}

.badge-stock-medium {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
}

.badge-stock-low {
    background: rgba(220, 53, 69, 0.2);
    color: #721c24;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-left: 4px solid var(--color-success);
    color: #155724;
}

.alert-error,
.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid var(--color-danger);
    color: #721c24;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid var(--color-warning);
    color: #856404;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border-left: 4px solid var(--color-info);
    color: #0c5460;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--color-gray-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-gray);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--color-danger);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--color-gray-light);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ============================================
   TABS
   ============================================ */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--color-gray-light);
    margin-bottom: 25px;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-weight: 500;
    color: var(--color-gray);
    transition: var(--transition);
}

.tab:hover {
    color: var(--color-accent);
}

.tab.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================
   SEARCH & FILTERS
   ============================================ */
.search-box {
    position: relative;
}

.search-box input {
    padding-left: 40px;
}

.search-box::before {
    content: "\f002";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--color-gray);
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filters .form-group {
    margin-bottom: 0;
}

.filters .form-control {
    min-width: 150px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--border-radius);
    background: var(--color-white);
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--color-gray-light);
}

.pagination-link:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
}

.pagination-link.active {
    background: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
    font-weight: 600;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

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

.text-danger {
    color: var(--color-danger);
}

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

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

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.gap-2 {
    gap: 10px;
}

.gap-3 {
    gap: 15px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .col-3,
    .col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .col-3,
    .col-4,
    .col-6,
    .col-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filters .form-control {
        width: 100%;
    }
    
    .table-container {
        font-size: 14px;
    }
    
    .table th,
    .table td {
        padding: 10px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .sidebar,
    .top-header,
    .main-footer {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-area {
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
