import './theme-colors.css';

:root {
    /* Legacy variables for backward compatibility */
    --bg-main: var(--bg-white);
    --bg-card: var(--bg-white);
    --bg-subtle: var(--bg-subtle);
    --border-light: var(--border-light);
    --border-medium: var(--border-medium);
    --border-strong: var(--border-dark);
    --text-primary: var(--text-primary);
    --text-secondary: var(--text-secondary);
    --text-muted: var(--text-muted);
    --accent-primary: var(--brand-mint-primary);
    --accent-primary-hover: var(--brand-mint-primary-hover);
    --accent-secondary: var(--brand-mint-500);
    --accent-success: var(--success-primary);
    --accent-warning: var(--info-medium);
    --accent-danger: var(--danger-medium);
    --glass-border: var(--border-light);
}

body {
    background-color: #dfe8e1;
    background: #dfe8e1;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
}

input,
select,
textarea {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px rgba(21, 108, 221, 0.1);
}

select option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.card {
    background-color: var(--bg-card);
    border-radius: 6px;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
}

.card-body {
    padding: 1.5rem;
}

.sidebar {
    width: 232px;
    background: #dfe8e1;
    border-right: 1px solid #e5e5e5;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 50;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #1a1a1a;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
}

.sidebar-logo-text {
    font-weight: 600;
    font-size: 1.25rem;
    color: #1a1a1a;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 1rem 2rem;
    overflow-y: auto;
}

.sidebar-section {
    margin-top: 1.5rem;
}

.sidebar-section-title {
    padding: 0 0.75rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.15s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-link:hover {
    background-color: var(--brand-mint-light);
    color: #1a1a1a;
}

}

.nav-link:hover i {
    color: inherit;
}
.nav-link.active {
    background-color: #1a1a1a;
    color: #ffffff;

.sidebar-profile {
    border-top: 1px solid #e5e5e5;
    padding: 1rem;
}

.sidebar-profile-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
}

.profile-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-status {
    font-size: 0.75rem;
    color: #6b7283;
}

.logout-btn {
    color: #6b7280;
    padding: 0.25rem;
    border-radius: 0.25rem;
}

.logout-btn:hover {
    color: #dc2626;
    background-color: #fef2f2;
}
    font-size: 0.875rem;
}

.btn-md {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
    border-radius: 8px;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
    border-radius: 8px;
}

.btn-primary:hover {
    background-color: var(--accent-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
}

.btn-secondary:hover {
    background-color: var(--brand-charcoal-grey-100);
    border-color: var(--border-strong);
}

.btn-danger {
    background-color: var(--accent-danger);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}


/* Fix text colors in light mode */
.text-app-text, .text-primary {
    color: #1a1a1a;
}

.text-app-text-dim {
    color: #6b7280;
}

.btn-modern {
    background: #dfe8e1;
    color: #1a1a1a;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px 20px;
    margin: 4px;
}

.btn-modern:hover {
    background: #dfe8e1;
    color: #1a1a1a;
    border-radius: 8px;
}
}

/* Force main background */
main {
    background-color: #dfe8e1 !important;
    background: #dfe8e1 !important;
}
