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

:root {
    --primary: #1e293b;
    --accent: #3b82f6;
    --bg-body: #f1f5f9;
    --text: #334155;
    --border: #cbd5e1;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text);
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 800px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

h1, h2, h3 { color: var(--primary); }
h1 { font-size: 1.5rem; margin-top: 0; }

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--bg-body);
    padding-bottom: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.form-group { margin-bottom: 20px; width: 100%; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9em; color: var(--primary); }

input[type="text"], input[type="password"], textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    transition: 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Caseta pentru parolă evidențiată */
.auth-box {
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px dashed var(--accent);
    margin-bottom: 25px;
}
.auth-box .form-group { margin-bottom: 0; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    font-size: 0.95rem;
}

.btn:hover { background: #2563eb; transform: translateY(-1px); }
.btn-secondary { background: #64748b; }
.btn-secondary:hover { background: #475569; }
.btn-danger { background: #ef4444; }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 8px 12px; font-size: 0.85rem; }

.alert { padding: 12px 15px; border-radius: 8px; margin-bottom: 20px; font-weight: 500; text-align: center; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #dcfce3; color: #166534; border: 1px solid #bbf7d0; }

.post-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.post-card h2 { margin-top: 0; margin-bottom: 5px; font-size: 1.3rem; }
.post-meta { font-size: 0.85rem; color: #64748b; font-weight: 500; }
.post-divider { border: 0; border-top: 1px solid #e2e8f0; margin: 15px 0; }
.post-content { line-height: 1.6; }

.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    flex-direction: column;
}
.admin-actions form { margin: 0; width: 100%; }