/* Kijiji Traders custom UI tweaks (template override) */

/* Make selects match .form-input background in all browsers */
select.form-input {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 42px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
        linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(1em + 6px),
        calc(100% - 16px) calc(1em + 6px);
    background-size:
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;
}

select.form-input:focus {
    outline: none;
    border-color: var(--emerald-light);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.2);
}

/* Dropdown list colors */
select.form-input option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

/* Danger button (e.g. delete account) */
.card-btn-danger {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.5);
    color: #fca5a5;
}
.card-btn-danger:hover {
    background: rgba(220, 38, 38, 0.35);
    border-color: rgba(248, 113, 113, 0.6);
}

/* Dashboard left column: flex so charts can share row */
.dashboard-left-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* Dashboard: Received Goods Trend + Sales by Counter on the same row */
.dashboard-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
    min-width: 0;
}
.dashboard-charts-row > * {
    min-width: 0;
}
@media (max-width: 640px) {
    .dashboard-charts-row {
        grid-template-columns: 1fr;
    }
}

/* Dashboard: recent transfers & sales – 2 cols, 1 on small */
.dashboard-recent-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .dashboard-recent-grid {
        grid-template-columns: 1fr;
    }
}

/* Reports: Received Stocks Summary card col-md-6 */
.reports-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.reports-summary-card {
    padding: 20px;
}
@media (max-width: 768px) {
    .reports-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Profile page: two columns (md-6 style), one column on small screens */
.profile-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.profile-cards-grid > * {
    grid-column: span 1;
    padding: 18px;
}
@media (max-width: 768px) {
    .profile-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal panel – glass style (used on profile delete confirmation) */
.modal-panel-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}
.profile-modal-form {
    padding: 24px;
    color: var(--text-primary);
}
.profile-modal-form .form-input,
.profile-modal-form .form-label,
.profile-modal-form .card-title,
.profile-modal-form .card-subtitle {
    color: inherit;
}

/* Application logo – visible sizing */
.app-logo {
    object-fit: contain;
    display: block;
}
.app-logo--login {
    height: 72px;
    width: auto;
    max-width: 220px;
    margin: 0 auto 8px;
}
.app-logo--navbar {
    height: 44px;
    width: auto;
    max-width: 180px;
}
.app-logo--sidebar {
    height: 52px;
    width: auto;
    max-width: 100%;
    min-height: 40px;
    flex-shrink: 0;
}
/* Sidebar header: center logo when it's the only child */
.sidebar-header .sidebar-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.sidebar-header .app-logo--sidebar {
    max-width: 200px;
}
.navbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.navbar-logo-link,
.sidebar-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.navbar-logo-link:hover .app-logo,
.sidebar-logo-link:hover .app-logo {
    opacity: 0.9;
}

