/* SUPERMAG24 - Custom CSS */

:root {
    --navy: #1a3a5c;
    --light-blue: #d0e4f7;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.nav-link.active {
    font-weight: 600;
    background-color: rgba(255,255,255,0.15);
    border-radius: 4px;
}

/* Cards */
.card {
    border-radius: 8px;
}

.card-header {
    border-bottom: 1px solid #e9ecef;
    font-size: 0.95rem;
}

/* Tables */
.table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #495057;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(26, 58, 92, 0.05);
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-size: 0.875rem;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

/* Forms */
.form-control, .form-select {
    border-radius: 6px;
    font-size: 0.9rem;
}

.form-label {
    font-size: 0.85rem;
    color: #495057;
    margin-bottom: 0.3rem;
}

/* Alerts */
.alert {
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Linii factura - input compact */
#linesTable .form-control-sm,
#linesTable .form-select-sm {
    font-size: 0.82rem;
    padding: 0.25rem 0.4rem;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .no-print,
    footer,
    .alert {
        display: none !important;
    }
    body {
        background: white;
    }
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    .container-fluid {
        padding: 0;
    }
}

/* Sticky total card */
.sticky-top {
    z-index: 10;
}

/* Dashboard cards */
.card-body .rounded-circle {
    min-width: 50px;
    min-height: 50px;
}

/* Footer */
footer {
    margin-top: 3rem;
}

/* Invoice view */
.invoice-header {
    border-bottom: 3px solid var(--navy);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* Responsive table wrapper */
.table-responsive {
    border-radius: 0 0 8px 8px;
}

/* Loading state */
.btn:disabled {
    opacity: 0.65;
}

/* Select with warning */
.border-warning {
    border-color: #ffc107 !important;
}

/* Small text helpers */
.text-navy {
    color: var(--navy) !important;
}
