/* SPAMS UI Components - Modern Admin Dashboard */
/* Inspired by TailAdmin, AdminLTE & Tabler */

/* ========================================
   CARDS
======================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-light);
}

.card-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.card-title i {
    color: var(--color-primary);
}

.card-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border-light);
    background: var(--bg-body);
}

/* Content Card (simple card without header/footer) */
.content-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: var(--space-6);
}

/* ========================================
   KPI / STAT CARDS
======================================== */
.kpi-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: var(--space-5);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    transition: all var(--transition-fast);
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.kpi-icon.primary {
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
}

.kpi-icon.success {
    background: var(--color-success-light);
    color: var(--color-success);
}

.kpi-icon.warning {
    background: var(--color-warning-light);
    color: var(--color-warning);
}

.kpi-icon.danger {
    background: var(--color-danger-light);
    color: var(--color-danger);
}

.kpi-icon.info {
    background: var(--color-info-light);
    color: var(--color-info);
}

.kpi-content {
    flex: 1;
    min-width: 0;
}

.kpi-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
}

.kpi-value {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    line-height: var(--leading-tight);
}

.kpi-trend {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    margin-top: var(--space-2);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.kpi-trend.up {
    background: var(--color-success-light);
    color: var(--color-success-dark);
}

.kpi-trend.down {
    background: var(--color-danger-light);
    color: var(--color-danger-dark);
}

/* KPI Tile (alternative compact style) */
.kpi-tile {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: var(--space-5);
    text-align: center;
    transition: all var(--transition-fast);
}

.kpi-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.kpi-tile .kpi-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-3);
    font-size: var(--text-2xl);
}

.kpi-tile .kpi-value {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-1);
}

.kpi-tile .kpi-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    line-height: 1.5;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn i {
    font-size: 0.9em;
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
}

.btn-block {
    width: 100%;
}

/* Primary Button */
.btn-primary {
    background: var(--color-primary);
    color: var(--text-inverse);
    border-color: var(--color-primary);
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

/* Secondary Button */
.btn-secondary {
    background: var(--color-secondary);
    color: var(--text-inverse);
    border-color: var(--color-secondary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
}

/* Success Button */
.btn-success {
    background: var(--color-success);
    color: var(--text-inverse);
    border-color: var(--color-success);
}

.btn-success:hover:not(:disabled) {
    background: var(--color-success-dark);
    border-color: var(--color-success-dark);
}

/* Warning Button */
.btn-warning {
    background: var(--color-warning);
    color: var(--text-primary);
    border-color: var(--color-warning);
}

.btn-warning:hover:not(:disabled) {
    background: var(--color-warning-dark);
    border-color: var(--color-warning-dark);
}

/* Danger Button */
.btn-danger {
    background: var(--color-danger);
    color: var(--text-inverse);
    border-color: var(--color-danger);
}

.btn-danger:hover:not(:disabled) {
    background: var(--color-danger-dark);
    border-color: var(--color-danger-dark);
}

/* Info Button */
.btn-info {
    background: var(--color-info);
    color: var(--text-inverse);
    border-color: var(--color-info);
}

.btn-info:hover:not(:disabled) {
    background: var(--color-info-dark);
    border-color: var(--color-info-dark);
}

/* Outline Buttons */
.btn-outline-primary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-primary:hover:not(:disabled) {
    background: var(--color-primary);
    color: var(--text-inverse);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--color-secondary);
    border-color: var(--border-default);
}

.btn-outline-secondary:hover:not(:disabled) {
    background: var(--bg-body);
    border-color: var(--color-secondary);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-body);
    color: var(--color-primary);
}

/* ========================================
   BADGES & TAGS
======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 3px 8px;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    border-radius: var(--radius-md);
    white-space: nowrap;
}

.badge-primary {
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
}

.badge-success {
    background: var(--color-success-light);
    color: var(--color-success-dark);
}

.badge-warning {
    background: var(--color-warning-light);
    color: var(--color-warning-dark);
}

.badge-danger {
    background: var(--color-danger-light);
    color: var(--color-danger-dark);
}

.badge-info {
    background: var(--color-info-light);
    color: var(--color-info-dark);
}

.badge-secondary {
    background: var(--bg-body);
    color: var(--text-secondary);
}

/* Pill Badge */
.badge-pill {
    border-radius: var(--radius-full);
    padding: 3px 10px;
}

/* Status Dot */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
}

.status-dot.online { background: var(--color-success); }
.status-dot.offline { background: var(--text-muted); }
.status-dot.busy { background: var(--color-danger); }
.status-dot.away { background: var(--color-warning); }

/* ========================================
   TABLES
======================================== */
.table-container {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-size: var(--text-sm);
    vertical-align: middle;
}

.data-table th {
    background: var(--bg-body);
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
}

.data-table td {
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.data-table .text-right {
    text-align: right;
}

.data-table .text-center {
    text-align: center;
}

.data-table .text-muted {
    color: var(--text-muted);
}

/* Table Actions */
.table-actions {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.table-actions .btn {
    padding: var(--space-1) var(--space-2);
}

/* Striped Table */
.data-table.striped tbody tr:nth-child(odd) {
    background: var(--bg-card-hover);
}

/* ========================================
   FORMS
======================================== */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-label.required::after {
    content: '*';
    color: var(--color-danger);
    margin-left: var(--space-1);
}

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:disabled {
    background: var(--bg-body);
    cursor: not-allowed;
}

/* Form Control Sizes */
.form-control-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
}

.form-control-lg {
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-base);
}

/* Select */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right var(--space-3) center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: var(--space-10);
}

/* Textarea */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-default);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.form-check-input[type="radio"] {
    border-radius: var(--radius-full);
}

.form-check-input:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.form-check-label {
    font-size: var(--text-sm);
    color: var(--text-primary);
    cursor: pointer;
}

/* Input Group */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    flex: 1;
    border-radius: 0;
}

.input-group .form-control:first-child {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.input-group .form-control:last-child {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-body);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.input-group-text:first-child {
    border-right: none;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.input-group-text:last-child {
    border-left: none;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* Form Text */
.form-text {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.form-error {
    color: var(--color-danger);
}

/* ========================================
   ALERTS
======================================== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.alert-icon {
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-1);
}

.alert-message {
    font-size: var(--text-sm);
}

.alert-dismiss {
    background: none;
    border: none;
    font-size: var(--text-lg);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.alert-dismiss:hover {
    opacity: 1;
}

.alert-success {
    background: var(--color-success-light);
    color: var(--color-success-dark);
}

.alert-warning {
    background: var(--color-warning-light);
    color: var(--color-warning-dark);
}

.alert-danger {
    background: var(--color-danger-light);
    color: var(--color-danger-dark);
}

.alert-info {
    background: var(--color-info-light);
    color: var(--color-info-dark);
}

/* Alert Banner (full width) */
.alert-banner {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    font-weight: var(--font-medium);
}

.alert-banner.success {
    background: var(--color-success-light);
    color: var(--color-success-dark);
}

.alert-banner.error {
    background: var(--color-danger-light);
    color: var(--color-danger-dark);
}

/* ========================================
   MODALS
======================================== */
.modal-backdrop {
    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: var(--z-modal-backdrop);
    padding: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(-20px);
    transition: transform var(--transition-base);
}

.modal-backdrop.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border-light);
}

.modal-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: var(--text-xl);
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-body);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--space-5);
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--border-light);
    background: var(--bg-body);
}

/* Modal Sizes */
.modal-sm { max-width: 400px; }
.modal-lg { max-width: 700px; }
.modal-xl { max-width: 900px; }

/* ========================================
   DROPDOWNS
======================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: var(--z-dropdown);
    min-width: 180px;
    padding: var(--space-2) 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu.right {
    left: auto;
    right: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-primary);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--bg-body);
}

.dropdown-item i {
    width: 16px;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: var(--space-2) 0;
}

/* ========================================
   TABS
======================================== */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    gap: var(--space-1);
}

.tab-item {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: -1px;
}

.tab-item:hover {
    color: var(--color-primary);
}

.tab-item.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tab-content {
    display: none;
    padding: var(--space-5) 0;
}

.tab-content.active {
    display: block;
}

/* ========================================
   PROGRESS BARS
======================================== */
.progress {
    height: 8px;
    background: var(--bg-body);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.progress-bar.success { background: var(--color-success); }
.progress-bar.warning { background: var(--color-warning); }
.progress-bar.danger { background: var(--color-danger); }

/* Progress with label */
.progress-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.progress-wrapper .progress {
    flex: 1;
}

.progress-label {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    min-width: 40px;
}

/* ========================================
   AVATARS
======================================== */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--text-inverse);
    font-weight: var(--font-semibold);
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-xs { width: 24px; height: 24px; font-size: var(--text-xs); }
.avatar-sm { width: 32px; height: 32px; font-size: var(--text-sm); }
.avatar-md { width: 40px; height: 40px; font-size: var(--text-base); }
.avatar-lg { width: 48px; height: 48px; font-size: var(--text-lg); }
.avatar-xl { width: 64px; height: 64px; font-size: var(--text-xl); }

.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    border: 2px solid var(--bg-card);
    margin-left: -8px;
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

/* ========================================
   EMPTY STATES
======================================== */
.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-6);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    background: var(--bg-body);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    color: var(--text-muted);
}

.empty-state-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.empty-state-text {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-5);
}

/* ========================================
   LOADING STATES
======================================== */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-light);
    border-top-color: var(--color-primary);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

.spinner-sm { width: 20px; height: 20px; border-width: 2px; }
.spinner-lg { width: 48px; height: 48px; border-width: 4px; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* ========================================
   TOOLTIPS
======================================== */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    padding: var(--space-1) var(--space-2);
    background: var(--bg-sidebar);
    color: var(--text-inverse);
    font-size: var(--text-xs);
    white-space: nowrap;
    border-radius: var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: var(--z-tooltip);
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   PROCESS LOG (Console Style)
======================================== */
.process-log {
    background: #1a1d21;
    color: #e2e8f0;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    max-height: 240px;
    overflow-y: auto;
}

.log-entry {
    padding: var(--space-1) 0;
    display: flex;
    gap: var(--space-2);
}

.log-entry::before {
    content: '❯';
    opacity: 0.5;
}

.log-entry.info { color: #60a5fa; }
.log-entry.success { color: #34d399; }
.log-entry.warning { color: #fbbf24; }
.log-entry.error { color: #f87171; }

/* ========================================
   OPERATION BOXES
======================================== */
.operation-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    height: 100%;
    transition: all var(--transition-fast);
}

.operation-box:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.operation-box h3 {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.operation-box p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

/* ========================================
   UTILITY CLASSES
======================================== */
/* Spacing */
.m-0 { margin: 0; }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-6 { margin: var(--space-6); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }

/* Text */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }
.text-info { color: var(--color-info); }

.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline { display: inline; }
.d-inline-flex { display: inline-flex; }

.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* Border */
.border { border: 1px solid var(--border-light); }
.border-0 { border: none; }
.rounded { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-none { box-shadow: none; }

/* ========================================
   TOAST NOTIFICATIONS
======================================== */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + var(--space-4));
    right: var(--space-4);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 400px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--color-info);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-success { border-left-color: var(--color-success); }
.toast-success .toast-icon { color: var(--color-success); }

.toast-error { border-left-color: var(--color-danger); }
.toast-error .toast-icon { color: var(--color-danger); }

.toast-warning { border-left-color: var(--color-warning); }
.toast-warning .toast-icon { color: var(--color-warning); }

.toast-info { border-left-color: var(--color-info); }
.toast-info .toast-icon { color: var(--color-info); }

.toast-icon {
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.toast-close {
    padding: var(--space-1);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-primary);
}

/* ========================================
   LOADING OVERLAY
======================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-light);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
}

/* Button loading state */
.btn .fa-spin {
    margin-right: var(--space-2);
}

/* ========================================
   ENHANCED ANIMATIONS
======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.animate-fadeIn { animation: fadeIn 0.3s ease forwards; }
.animate-fadeInUp { animation: fadeInUp 0.4s ease forwards; }
.animate-fadeInDown { animation: fadeInDown 0.4s ease forwards; }
.animate-slideInLeft { animation: slideInLeft 0.4s ease forwards; }
.animate-slideInRight { animation: slideInRight 0.4s ease forwards; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-shake { animation: shake 0.5s ease; }

/* Staggered animations for lists */
.stagger-animation > * {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.15s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.25s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.35s; }

/* ========================================
   SKELETON LOADING
======================================== */
.skeleton {
    background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    margin-bottom: var(--space-2);
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: var(--space-3);
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
}

.skeleton-image {
    height: 200px;
    width: 100%;
}

/* ========================================
   PROGRESS BARS
======================================== */
.progress {
    height: 8px;
    background: var(--bg-body);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

.progress-bar-striped {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
}

.progress-bar-animated {
    animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}

.progress-success .progress-bar { background: var(--color-success); }
.progress-warning .progress-bar { background: var(--color-warning); }
.progress-danger .progress-bar { background: var(--color-danger); }
.progress-info .progress-bar { background: var(--color-info); }

/* ========================================
   TOOLTIPS
======================================== */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-sidebar);
    color: var(--text-inverse);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    border-radius: var(--radius-md);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: var(--z-tooltip);
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

/* ========================================
   EMPTY STATES
======================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-10);
    text-align: center;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
}

.empty-state-icon i {
    font-size: var(--text-3xl);
    color: var(--text-muted);
}

.empty-state-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.empty-state-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    max-width: 400px;
    margin-bottom: var(--space-6);
}

/* ========================================
   AVATAR
======================================== */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--text-inverse);
    font-weight: var(--font-semibold);
    flex-shrink: 0;
}

.avatar-xs { width: 24px; height: 24px; font-size: 10px; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-md { width: 40px; height: 40px; font-size: 14px; }
.avatar-lg { width: 48px; height: 48px; font-size: 16px; }
.avatar-xl { width: 64px; height: 64px; font-size: 20px; }

.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    margin-left: -8px;
    border: 2px solid var(--bg-card);
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

/* ========================================
   STATUS INDICATORS
======================================== */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--color-secondary);
}

.status-online .status-dot { background: var(--color-success); }
.status-offline .status-dot { background: var(--text-muted); }
.status-busy .status-dot { background: var(--color-danger); }
.status-away .status-dot { background: var(--color-warning); }

.status-dot-animated {
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   NOTIFICATION LIST
======================================== */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.notification-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    transition: background var(--transition-fast);
}

.notification-item:hover {
    background: var(--bg-body);
}

.notification-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    margin-top: var(--space-1);
}

.notification-dot.success { background: var(--color-success); }
.notification-dot.warning { background: var(--color-warning); }
.notification-dot.danger { background: var(--color-danger); }
.notification-dot.info { background: var(--color-info); }

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.notification-text {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-1);
}

.notification-time {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ========================================
   QUICK LINKS
======================================== */
.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.quick-link:hover {
    background: rgba(var(--color-primary-rgb), 0.1);
    transform: translateY(-2px);
}

.quick-link i {
    font-size: var(--text-xl);
    color: var(--color-primary);
}

.quick-link span {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
}

.quick-link:hover span {
    color: var(--color-primary);
}

/* ========================================
   UTILITY HELPERS
======================================== */
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

/* ========================================
   OPERATIONS PAGE - PHASE BANNER
======================================== */
.phase-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    color: var(--text-inverse);
}

.phase-banner.phase-warning {
    background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning-dark) 100%);
    color: var(--text-primary);
}

.phase-banner.phase-success {
    background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-dark) 100%);
}

.phase-banner.phase-info {
    background: linear-gradient(135deg, var(--color-info) 0%, var(--color-info-dark) 100%);
}

.phase-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.phase-banner-left {
    display: flex;
    gap: var(--space-5);
    align-items: flex-start;
}

.phase-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.phase-info {
    flex: 1;
}

.phase-label {
    font-size: var(--text-sm);
    opacity: 0.9;
    margin-bottom: var(--space-1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: var(--font-medium);
}

.phase-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
    line-height: var(--leading-tight);
}

.phase-description {
    font-size: var(--text-sm);
    opacity: 0.9;
    max-width: 500px;
}

.phase-banner-right {
    text-align: right;
    min-width: 180px;
}

.phase-countdown {
    margin-bottom: var(--space-4);
}

.countdown-value {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    line-height: 1;
}

.countdown-label {
    font-size: var(--text-xs);
    opacity: 0.8;
    margin-top: var(--space-1);
}

.phase-progress {
    text-align: right;
}

.phase-progress .progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-2);
}

.phase-progress .progress-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.phase-progress .progress-label {
    font-size: var(--text-xs);
    opacity: 0.8;
}

/* Phase Timeline */
.phase-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all var(--transition-fast);
}

.timeline-item.active .timeline-dot {
    background: white;
    border-color: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.timeline-item.completed .timeline-dot {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
}

.timeline-label {
    font-size: var(--text-xs);
    opacity: 0.7;
    font-weight: var(--font-medium);
}

.timeline-item.active .timeline-label {
    opacity: 1;
    font-weight: var(--font-semibold);
}

.timeline-connector {
    width: 80px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.timeline-connector.completed {
    background: rgba(255, 255, 255, 0.8);
}

/* ========================================
   OPERATIONS PAGE - ACTIONS
======================================== */
.phase-actions {
    margin-bottom: var(--space-6);
}

.section-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.section-title i {
    color: var(--color-warning);
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.action-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    border: 1px solid var(--border-light);
}

.action-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.action-card.completed {
    background: var(--color-success-light);
    border-color: var(--color-success);
}

.action-card.completed .action-text {
    text-decoration: line-through;
    opacity: 0.7;
}

.action-number {
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    color: var(--text-inverse);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    flex-shrink: 0;
}

.action-card.completed .action-number {
    background: var(--color-success);
}

.action-text {
    flex: 1;
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.action-check {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-check:hover {
    background: var(--color-success-light);
    color: var(--color-success);
}

.action-card.completed .action-check {
    background: var(--color-success);
    color: white;
}

/* ========================================
   OPERATIONS PAGE - READINESS GRID
======================================== */
.readiness-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.readiness-stat {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-body);
    border-radius: var(--radius-lg);
}

.readiness-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
}

.readiness-icon.success {
    background: var(--color-success-light);
    color: var(--color-success);
}

.readiness-icon.warning {
    background: var(--color-warning-light);
    color: var(--color-warning);
}

.readiness-icon.danger {
    background: var(--color-danger-light);
    color: var(--color-danger);
}

.readiness-icon.info {
    background: var(--color-info-light);
    color: var(--color-info);
}

.readiness-info {
    flex: 1;
}

.readiness-value {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.readiness-label {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

/* ========================================
   OPERATIONS PAGE - CHECKLIST
======================================== */
.training-checklist,
.verification-checklist {
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

.checklist-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    padding: var(--space-2) 0;
}

.checklist-item input[type="checkbox"] {
    display: none;
}

.checklist-item .checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-default);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.checklist-item .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: transparent;
    transition: color var(--transition-fast);
}

.checklist-item input:checked + .checkmark {
    background: var(--color-success);
    border-color: var(--color-success);
}

.checklist-item input:checked + .checkmark::after {
    color: white;
}

.checklist-item .item-text {
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.checklist-item input:checked ~ .item-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* ========================================
   OPERATIONS PAGE - COLLECTION STATS
======================================== */
.collection-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.collection-stat {
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    text-align: center;
}

.collection-stat.primary {
    background: rgba(var(--color-primary-rgb), 0.1);
}

.collection-stat.success {
    background: var(--color-success-light);
}

.collection-stat.warning {
    background: var(--color-warning-light);
}

.collection-stat.info {
    background: var(--color-info-light);
}

.collection-stat .stat-value {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.collection-stat .stat-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.collection-stat .stat-trend {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.collection-stat .stat-trend.up {
    color: var(--color-success);
}

/* ========================================
   OPERATIONS PAGE - PAYMENT SUMMARY
======================================== */
.payment-summary {
    display: flex;
    gap: var(--space-6);
    padding: var(--space-4);
    background: var(--bg-body);
    border-radius: var(--radius-lg);
}

.payment-stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.payment-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.payment-value {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.payment-value.success {
    color: var(--color-success);
}

/* ========================================
   OPERATIONS PAGE - QUALITY METRICS
======================================== */
.quality-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.quality-metric {
    text-align: center;
}

.metric-circle {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-3);
    border: 4px solid;
}

.metric-circle.success {
    border-color: var(--color-success);
    background: var(--color-success-light);
}

.metric-circle.warning {
    border-color: var(--color-warning);
    background: var(--color-warning-light);
}

.metric-circle.info {
    border-color: var(--color-info);
    background: var(--color-info-light);
}

.metric-value {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.metric-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ========================================
   OPERATIONS PAGE - PROJECT LIST
======================================== */
.project-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.project-item:hover {
    background: var(--bg-card-hover);
}

.project-name {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.project-meta {
    display: flex;
    gap: var(--space-4);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.project-meta i {
    margin-right: var(--space-1);
}

/* ========================================
   OPERATIONS PAGE - HELP REQUESTS
======================================== */
.help-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.help-item {
    padding: var(--space-4);
    background: var(--color-danger-light);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--color-danger);
}

.help-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-2);
}

.help-header strong {
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.help-date {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.help-desc {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.help-actions {
    display: flex;
    gap: var(--space-2);
}

/* ========================================
   OPERATIONS PAGE - ACTIVITY FEED
======================================== */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.activity-item {
    display: flex;
    gap: var(--space-3);
}

.activity-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-avatar span {
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: var(--text-inverse);
}

.activity-avatar.success {
    background: var(--color-success);
}

.activity-avatar.warning {
    background: var(--color-warning);
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: var(--text-sm);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.activity-time {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ========================================
   OPERATIONS PAGE - QUICK MESSAGE
======================================== */
.quick-message-form .form-group {
    margin-bottom: var(--space-3);
}

/* ========================================
   OPERATIONS PAGE - RISK LIST
======================================== */
.risk-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.risk-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--bg-body);
    border-radius: var(--radius-md);
}

.risk-indicator {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.risk-item.low .risk-indicator {
    background: var(--color-success);
}

.risk-item.medium .risk-indicator {
    background: var(--color-warning);
}

.risk-item.high .risk-indicator {
    background: var(--color-danger);
}

.risk-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ========================================
   EMPTY STATE SMALL VARIANT
======================================== */
.empty-state.small {
    padding: var(--space-6);
}

.empty-state.small i {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
}

.empty-state.small p {
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
}

/* ========================================
   RESPONSIVE - OPERATIONS PAGE
======================================== */
@media (max-width: 1280px) {
    .action-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .readiness-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .collection-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quality-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .phase-banner-content {
        flex-direction: column;
    }
    
    .phase-banner-right {
        text-align: left;
        width: 100%;
    }
    
    .phase-countdown {
        display: flex;
        align-items: baseline;
        gap: var(--space-2);
    }
    
    .countdown-value {
        font-size: var(--text-2xl);
    }
}

@media (max-width: 768px) {
    .action-cards {
        grid-template-columns: 1fr;
    }
    
    .readiness-grid {
        grid-template-columns: 1fr;
    }
    
    .collection-stats {
        grid-template-columns: 1fr;
    }
    
    .quality-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-summary {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .phase-timeline {
        flex-wrap: wrap;
        gap: var(--space-2);
    }
    
    .timeline-connector {
        display: none;
    }
}
