/* style.css */
:root {
    --primary-color: #2563eb; /* Albastru modern */
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --border-radius: 8px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.mt-20 { margin-top: 20px; }

/* Cards & Containers */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

/* Forms */
.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; }
input[type="text"], input[type="email"], input[type="password"], textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}
input:focus { border-color: var(--primary-color); outline: none; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    text-align: center;
}
.btn-primary { background: var(--primary-color); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--secondary-color); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-block { display: block; width: 100%; }

/* Alerts */
.alert { padding: 10px; border-radius: var(--border-radius); margin-bottom: 15px; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }

/* Navbar */
.navbar {
    background: white;
    padding: 15px 0;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    margin-bottom: 30px;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); text-decoration: none; }
.nav-links a { margin-left: 20px; text-decoration: none; color: var(--text-main); font-weight: 500; }
.nav-links a:hover { color: var(--primary-color); }

/* Helper classes */
.text-center { text-align: center; }
.hidden { display: none; }
.credits-badge { 
    background: #e0f2fe; color: #0369a1; 
    padding: 5px 10px; border-radius: 20px; font-weight: bold; font-size: 0.9rem; 
}

/* ... la finalul fișierului style.css ... */

/* Stiluri Tabel Frontend */
.table-responsive {
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.data-table th, .data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.data-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--secondary-color);
}
.amount-plus { color: var(--success); font-weight: bold; }
.amount-minus { color: var(--danger); font-weight: bold; }

.info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 15px;
    border-radius: var(--border-radius);
    color: #0369a1;
}