/* SMASH Base Styles — extracted from templates/base.html */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --seller-color: #198754;
    --buyer-color: #0d6efd;
    --admin-color: #dc3545;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: none;
}
.navbar.header-seller { border-bottom: 3px solid var(--seller-color); }
.navbar.header-buyer { border-bottom: 3px solid var(--buyer-color); }
.navbar.header-admin { border-bottom: 3px solid var(--admin-color); }
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white !important;
    padding: 8px 0;
}
.navbar-brand img {
    max-height: 60px;
    width: auto;
    background: transparent !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.brand-tagline {
    font-size: 0.85rem;
    color: white;
    font-weight: 500;
}
@media (max-width: 768px) {
    .brand-tagline { display: none; }
}
.navbar-nav .nav-link {
    color: rgba(255,255,255,0.8) !important;
    margin: 0 10px;
}
.navbar-nav .nav-link:hover { color: white !important; }
.notification-bell-badge {
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    padding: 0.25em 0.4em;
}
.notification-bell-badge.priority-critical { background-color: var(--danger-color) !important; }
.notification-bell-badge.priority-high { background-color: var(--warning-color) !important; }
.notification-bell-badge.priority-medium { background-color: var(--buyer-color) !important; }
.notification-bell-badge.priority-low { background-color: #6c757d !important; }
.notification-item {
    padding: 12px 16px;
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s;
}
.notification-item:hover { background-color: #f8f9fa; }
.notification-item.unread { background-color: #e7f3ff; }
.notification-item.priority-critical { border-left-color: var(--danger-color); }
.notification-item.priority-high { border-left-color: var(--warning-color); }
.notification-item.priority-medium { border-left-color: var(--buyer-color); }
.notification-item.priority-low { border-left-color: #6c757d; }
.notification-priority-badge {
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
}
.commodity-ticker {
    background-color: #1a252f;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 32px;
    line-height: 32px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.commodity-ticker:active { cursor: grabbing; }
.commodity-ticker .ticker-track {
    display: inline-block;
    position: relative;
    left: 0;
}
.ticker-item {
    display: inline-block;
    padding: 0 20px;
    color: #ccc;
    font-family: 'Segoe UI', monospace;
}
@media (max-width: 768px) {
    .commodity-ticker { font-size: 11px; height: 28px; line-height: 28px; }
    .ticker-item { padding: 0 10px; }
    .ticker-item .ticker-logo { height: 12px; }
}
.ticker-item .ticker-label { margin-right: 4px; }
.ticker-item .ticker-price { color: #fff; font-weight: 600; }
.ticker-item .ticker-up { color: #2ecc71; font-size: 11px; margin-left: 4px; }
.ticker-item .ticker-down { color: #e74c3c; font-size: 11px; margin-left: 4px; }
.ticker-item .ticker-flat { color: #8899aa; font-size: 11px; margin-left: 4px; }
.ticker-item .ticker-sep { color: #445566; margin: 0 5px; }
.ticker-item .ticker-logo { height: 16px; width: auto; vertical-align: middle; opacity: 0.7; margin: 0 4px; }
.ticker-loading { color: #556; text-align: center; font-size: 12px; }
.main-content {
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 8px 8px 0 0 !important;
}
.card-header.bg-light,
.card-header.bg-white,
.card-header.bg-secondary.bg-opacity-10,
.card-header[class*="bg-opacity"] {
    color: #212529;
}
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e8e8e8;
    padding: 0;
    margin-top: 50px;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ff6b35, #ffd700);
}
.footer-main { padding: 50px 0 40px; }
.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.footer-brand img {
    max-height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.footer-brand-text h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #fff;
}
.footer-brand-text small {
    font-size: 0.8rem;
    color: #c8c8c8;
    letter-spacing: 0.5px;
}
.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 20px 0;
    padding-left: 15px;
    border-left: 3px solid #ffd700;
}
.footer-tagline span { color: #ffd700; font-weight: 600; }
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}
.footer-contact a {
    color: #e8e8e8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s ease;
}
.footer-contact a:hover { color: #ffd700; }
.footer-contact i { font-size: 1.1rem; width: 20px; text-align: center; }
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-links a {
    color: #d0d0d0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-links a:hover { color: #ffd700; padding-left: 5px; }
.footer-links a i { font-size: 0.75rem; opacity: 0; transition: opacity 0.2s ease; }
.footer-links a:hover i { opacity: 1; }
.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom p { margin: 0; font-size: 0.85rem; color: #b8b8b8; }
.footer-social {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8e8e8;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-social a:hover {
    background: #ffd700;
    color: #1a1a2e;
    transform: translateY(-3px);
}
@media (max-width: 768px) {
    .footer-main { padding: 40px 0 30px; }
    .footer-links { margin-top: 30px; }
    .footer-bottom .row { text-align: center; }
    .footer-social { justify-content: center; margin-top: 15px; }
}
.badge {
    font-size: 0.85rem;
    padding: 0.4em 0.8em;
}
