/* DFCSC - CJ Maramures Platforma de Finantari
   Romanian Government Blue/White Theme */

:root {
    --cjmm-primary: #003366;
    --cjmm-primary-light: #004a99;
    --cjmm-primary-dark: #002244;
    --cjmm-accent: #0066cc;
    --cjmm-gold: #c8a951;
    --cjmm-bg: #f5f7fa;
    --cjmm-border: #d1d9e6;
    --cjmm-text: #2c3e50;
    --cjmm-muted: #6c7a8d;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--cjmm-bg);
    color: var(--cjmm-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar */
.bg-primary-cjmm {
    background-color: var(--cjmm-primary) !important;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Footer */
.footer-cjmm {
    background-color: var(--cjmm-primary-dark);
    color: #bcc8d8;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-cjmm h6 {
    color: #fff;
}

/* Cards */
.card {
    border: 1px solid var(--cjmm-border);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid var(--cjmm-border);
    font-weight: 600;
}

/* Stats Cards */
.stat-card {
    border-left: 4px solid var(--cjmm-accent);
    padding: 1.25rem;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cjmm-primary);
    line-height: 1;
}

.stat-card .stat-label {
    color: var(--cjmm-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.stat-card.stat-success { border-left-color: #28a745; }
.stat-card.stat-warning { border-left-color: #ffc107; }
.stat-card.stat-danger  { border-left-color: #dc3545; }
.stat-card.stat-info    { border-left-color: #17a2b8; }

/* Wizard */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.wizard-steps li {
    flex: 1;
    text-align: center;
    position: relative;
    counter-increment: step;
    padding-top: 2.5rem;
    font-size: 0.85rem;
    color: var(--cjmm-muted);
}

.wizard-steps li::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #dee2e6;
    color: #fff;
    font-weight: 700;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 0.9rem;
}

.wizard-steps li::after {
    content: '';
    position: absolute;
    top: 1rem;
    left: 0;
    right: 0;
    height: 2px;
    background: #dee2e6;
    z-index: 1;
}

.wizard-steps li:first-child::after {
    left: 50%;
}

.wizard-steps li:last-child::after {
    right: 50%;
}

.wizard-steps li.active::before {
    background: var(--cjmm-accent);
}

.wizard-steps li.active {
    color: var(--cjmm-primary);
    font-weight: 600;
}

.wizard-steps li.completed::before {
    background: #28a745;
    content: '\2713';
}

.wizard-steps li.completed::after,
.wizard-steps li.active::after {
    background: var(--cjmm-accent);
}

/* Auth pages */
.auth-container {
    max-width: 500px;
    margin: 0 auto;
}

.auth-container.auth-wide {
    max-width: 700px;
}

.auth-logo {
    text-align: center;
    padding: 2rem 0 1rem;
}

.auth-logo i {
    font-size: 3rem;
    color: var(--cjmm-primary);
}

.auth-logo h4 {
    color: var(--cjmm-primary);
    margin-top: 0.5rem;
    font-weight: 700;
}

/* Tables */
.table th {
    background-color: #f8f9fc;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--cjmm-muted);
    white-space: nowrap;
}

/* Budget table */
.budget-table input[type="number"],
.budget-table input[type="text"],
.budget-table select {
    font-size: 0.875rem;
}

.budget-table .form-control {
    padding: 0.25rem 0.5rem;
}

.budget-table .form-select {
    padding: 0.25rem 2rem 0.25rem 0.5rem;
}

/* Status badges */
.badge {
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.35em 0.65em;
}

/* Session cards */
.session-card {
    border-left: 4px solid var(--cjmm-accent);
    transition: transform 0.15s;
}

.session-card:hover {
    transform: translateY(-2px);
}

.session-card.domain-CULTURA { border-left-color: #6f42c1; }
.session-card.domain-TINERET { border-left-color: #20c997; }
.session-card.domain-SPORT   { border-left-color: #fd7e14; }
.session-card.domain-CULTE   { border-left-color: #e83e8c; }

/* Declarations */
.declaration-item {
    background: #f8f9fc;
    border: 1px solid var(--cjmm-border);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.declaration-item .form-check-input:checked + .form-check-label {
    color: var(--cjmm-primary);
}

/* Document upload cards */
.doc-upload-card {
    border: 2px dashed var(--cjmm-border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}

.doc-upload-card:hover {
    border-color: var(--cjmm-accent);
    background: #f0f4ff;
}

.doc-upload-card.has-file {
    border-style: solid;
    border-color: #28a745;
    background: #f0fff4;
}

.doc-upload-card .doc-icon {
    font-size: 2rem;
    color: var(--cjmm-muted);
}

.doc-upload-card.has-file .doc-icon {
    color: #28a745;
}

/* Review section */
.review-section {
    background: #fff;
    border: 1px solid var(--cjmm-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.review-section h5 {
    color: var(--cjmm-primary);
    border-bottom: 2px solid var(--cjmm-accent);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.review-field {
    margin-bottom: 0.5rem;
}

.review-field .label {
    font-weight: 600;
    color: var(--cjmm-muted);
    font-size: 0.85rem;
}

/* Print styles */
@media print {
    .navbar, .footer-cjmm, .btn, .wizard-steps {
        display: none !important;
    }
    body {
        background: #fff;
    }
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-steps li {
        font-size: 0.7rem;
        padding-top: 2rem;
    }
    .wizard-steps li::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
    }
    .stat-card .stat-number {
        font-size: 1.5rem;
    }
}
