@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #1e293b;
    --accent-color: #3b82f6;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --card-bg: #ffffff;
    --text-main: #334155;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseShadow {
    0% { box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05); }
    50% { box-shadow: 0 15px 35px -5px rgba(59, 130, 246, 0.1); }
    100% { box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05); }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.container-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 600px;
    padding: 40px;
    border-radius: 24px;
    animation: fadeInUp 0.6s ease-out, pulseShadow 5s infinite ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

header { text-align: center; margin-bottom: 25px; }
h1 { font-size: 1.6rem; color: var(--primary-color); margin-bottom: 8px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 0.85rem; color: var(--accent-color); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; margin-bottom: 15px;}
h3 { font-size: 1.1rem; color: var(--primary-color); margin: 20px 0 10px; font-weight: 700; }

/* Navigație */
nav { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
nav a { padding: 8px 16px; background: #f1f5f9; border-radius: 12px; text-decoration: none; font-size: 0.85rem; font-weight: 600; color: var(--text-main); transition: var(--transition); }
nav a:hover { background: var(--accent-color); color: white; transform: translateY(-1px); }

/* Formulare */
.form-group { margin-bottom: 15px; text-align: left; }
label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 6px; color: #94a3b8; text-transform: uppercase; }

input[type="text"], input[type="password"], input[type="date"], input[type="number"], select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    font-family: inherit;
    background-color: #f8fafc;
    transition: var(--transition);
    font-weight: 600;
    outline: none;
    color: var(--text-main);
}

select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; background-size: 18px; }
input:hover, select:hover { border-color: #e2e8f0; }
input:focus, select:focus { border-color: var(--accent-color); background-color: #fff; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); }

/* Butoane */
.btn { width: 100%; cursor: pointer; padding: 14px 10px; border-radius: 12px; font-weight: 700; border: none; font-size: 0.9rem; transition: var(--transition); text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; text-decoration: none;}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.btn:active { transform: translateY(0) scale(0.96); }

.btn-primary { background-color: var(--accent-color); color: white; }
.btn-danger { background-color: #fef2f2; color: #ef4444; border: 1px solid #fee2e2; padding: 8px 12px; font-size: 0.8rem; width: auto; margin: 0;}
.btn-danger:hover { background-color: #fee2e2; }

/* Liste & Tabele */
ul.record-list { list-style: none; padding: 0; margin-top: 20px; }
ul.record-list li { display: flex; justify-content: space-between; align-items: center; padding: 15px; background: #f8fafc; border-radius: 12px; margin-bottom: 10px; border: 1px solid #f1f5f9; font-weight: 600; font-size: 0.9rem; }

table { width: 100%; border-collapse: collapse; margin-top: 15px; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #f1f5f9; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; }
th { font-weight: 700; color: #94a3b8; text-transform: uppercase; font-size: 0.75rem; background: #f8fafc; }
tfoot th { background: #f1f5f9; color: var(--primary-color); font-size: 0.9rem; }

/* Mesaje */
.error { color: #ef4444; background: #fef2f2; padding: 10px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; margin-bottom: 15px; border: 1px solid #fee2e2; text-align: center; }
.success { color: #10b981; background: #f0fdf4; padding: 10px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; margin-top: 15px; border: 1px solid #d1fae5; text-align: center; }

/* Footer */
footer { margin-top: auto; padding: 40px 0; font-size: 0.85rem; color: #94a3b8; text-align: center; line-height: 1.6; }
footer a { color: var(--accent-color); text-decoration: none; font-weight: 600; border-bottom: 1px solid transparent; transition: 0.3s; }
footer a:hover { border-bottom-color: var(--accent-color); }