/* AntMedia Custom Styles — Red/White/Black Theme */
[x-cloak] { display: none !important; }

:root {
    --primary: #DC2626;
    --primary-dark: #B91C1C;
    --primary-light: #FEE2E2;
    --brand-dark: #111111;
    --brand-darker: #000000;
}

/* Tier badge styles */
.tier-Bronze   { background: linear-gradient(135deg, #CD7F32, #A0522D); }
.tier-Silver   { background: linear-gradient(135deg, #C0C0C0, #A9A9A9); }
.tier-Gold     { background: linear-gradient(135deg, #FFD700, #FFA500); }
.tier-Platinum { background: linear-gradient(135deg, #E5E4E2, #BCC6CC); }
.tier-Elite    { background: linear-gradient(135deg, #00CED1, #008B8B); }
.tier-Legend   { background: linear-gradient(135deg, #DC2626, #FF4444, #8B00FF); }

.tier-card {
    border-radius: 12px;
    color: white;
    padding: 8px 16px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Score progress bars */
.score-bar {
    height: 8px;
    border-radius: 999px;
    background: #E5E7EB;
    overflow: hidden;
}
.score-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #DC2626, #EF4444);
    transition: width 0.8s ease;
}

/* Status badges */
.status-badge {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.status-pending     { background: #FEF3C7; color: #92400E; }
.status-accepted    { background: #D1FAE5; color: #065F46; }
.status-applied     { background: #DBEAFE; color: #1E40AF; }
.status-invited     { background: #E0E7FF; color: #3730A3; }
.status-in_progress { background: #DBEAFE; color: #1E40AF; }
.status-submitted   { background: #EDE9FE; color: #5B21B6; }
.status-draft_submitted { background: #EDE9FE; color: #5B21B6; }
.status-approved    { background: #D1FAE5; color: #065F46; }
.status-completed   { background: #D1FAE5; color: #065F46; }
.status-rejected    { background: #FEE2E2; color: #991B1B; }
.status-revision_required { background: #FEF3C7; color: #92400E; }
.status-shipped     { background: #DBEAFE; color: #1E40AF; }
.status-delivered   { background: #D1FAE5; color: #065F46; }
.status-cancelled   { background: #F3F4F6; color: #6B7280; }

/* Card styles */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    border: 1px solid #F3F4F6;
}
.card-hover { transition: all 0.2s; }
.card-hover:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

/* Sidebar */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
    text-decoration: none;
}
.sidebar-link:hover, .sidebar-link.active {
    background: rgba(220,38,38,0.08);
    color: #DC2626;
}
.sidebar-link.active { font-weight: 600; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    background: #F9FAFB;
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #E5E7EB;
}
.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #F3F4F6;
    font-size: 14px;
    color: #374151;
}
.data-table tr:hover td { background: #FAFAFA; }

/* Buttons */
.btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-primary { background: #DC2626; color: white; }
.btn-primary:hover { background: #B91C1C; }
.btn-success { background: #10B981; color: white; }
.btn-success:hover { background: #059669; }
.btn-danger  { background: #000000; color: white; }
.btn-danger:hover  { background: #1F2937; }
.btn-secondary { background: #F3F4F6; color: #374151; border: 1px solid #E5E7EB; }
.btn-secondary:hover { background: #E5E7EB; }
.btn-sm { padding: 4px 12px; font-size: 12px; }

/* Form */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: #374151; margin-bottom: 6px; }
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.15s;
    background: white;
    box-sizing: border-box;
}
.form-input:focus { outline: none; border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.1); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }

/* Alert */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.alert-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.alert-info    { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }

/* Stat cards */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #F3F4F6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Page header */
.page-header {
    background: white;
    border-bottom: 1px solid #E5E7EB;
    padding: 16px 0;
    margin-bottom: 24px;
}

/* Legend tier animation */
.tier-Legend { animation: legendGlow 2s ease-in-out infinite; }
@keyframes legendGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(220,38,38,0.5); }
    50% { box-shadow: 0 0 20px rgba(239,68,68,0.7), 0 0 30px rgba(139,0,255,0.3); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #F3F4F6; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* Auto-dismiss alerts */
[data-auto-dismiss] { animation: fadeOut 0.5s ease 4s forwards; }
@keyframes fadeOut { to { opacity: 0; height: 0; padding: 0; margin: 0; overflow: hidden; } }
