/* CSS pentru Panoul de Administrare */

/* Layout principal */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--brand);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.admin-main {
    flex: 1;
    margin-left: 250px;
    background: #f8faf9;
    min-height: 100vh;
}

/* Sidebar */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo .logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.3);
    overflow: hidden;
}

.sidebar-logo .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}

.sidebar-logo .logo-icon span {
    font-weight: 700;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.sidebar-logo h2 {
    font-family: "Merriweather", serif;
    font-size: 16px;
    margin: 0;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: block;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: var(--accent);
}

.nav-item i {
    margin-right: 10px;
    width: 16px;
}

/* Header principal */
.admin-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header h1 {
    font-family: "Merriweather", serif;
    font-size: 24px;
    margin: 0;
    color: var(--brand);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    text-align: right;
}

.user-name {
    font-weight: 600;
    color: var(--text);
}

.user-role {
    font-size: 12px;
    color: var(--muted);
}

.logout-btn {
    background: var(--brand);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: var(--brand-600);
}

/* Conținut principal */
.admin-content {
    padding: 24px;
}

.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-family: "Merriweather", serif;
    font-size: 28px;
    margin: 0 0 8px 0;
    color: var(--brand);
}

.page-subtitle {
    color: var(--muted);
    margin: 0;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    border: 1px solid var(--border);
}

.dashboard-card h3 {
    font-size: 16px;
    margin: 0 0 16px 0;
    color: var(--muted);
    font-weight: 600;
}

.dashboard-card .number {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 8px;
}

.dashboard-card .description {
    font-size: 14px;
    color: var(--muted);
}

/* Tabele */
.admin-table {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

.table-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-title {
    font-family: "Merriweather", serif;
    font-size: 20px;
    margin: 0;
    color: var(--brand);
}

.table-actions {
    display: flex;
    gap: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--brand-50);
    font-weight: 600;
    color: var(--brand);
    font-size: 14px;
}

td {
    font-size: 14px;
}

tr:hover {
    background: var(--brand-50);
}

/* Butoane */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--brand);
    color: white;
}

.btn-primary:hover {
    background: var(--brand-600);
}

.btn-secondary {
    background: white;
    color: var(--brand);
    border-color: var(--brand);
}

.btn-secondary:hover {
    background: var(--brand-50);
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-success {
    background: #059669;
    color: white;
}

.btn-success:hover {
    background: #047857;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Formulare */
.admin-form {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    border: 1px solid var(--border);
    max-width: 800px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 61, 46, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.5;
}

.form-help {
    font-size: 14px;
    color: var(--muted);
    margin-top: 8px;
    font-style: italic;
}

/* File upload styles */
.file-upload-group {
    margin-bottom: 20px;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--brand-50);
    border: 2px dashed var(--brand);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--brand);
    font-weight: 500;
}

.file-upload-label:hover {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}

.upload-icon {
    font-size: 18px;
}

.upload-text {
    font-size: 14px;
}

.existing-images-group {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.current-image {
    margin-bottom: 15px;
    padding: 15px;
    background: var(--card);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.current-image img {
    display: block;
    margin-bottom: 10px;
}

.current-logo {
    margin-bottom: 15px;
    padding: 15px;
    background: var(--card);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.current-logo img {
    display: block;
    margin-bottom: 10px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* Alerte */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fed7aa;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-published {
    background: #dcfce7;
    color: #166534;
}

.status-draft {
    background: #fef3c7;
    color: #d97706;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-inactive {
    background: #fee2e2;
    color: #dc2626;
}

/* Paginare */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

.page-link:hover,
.page-link.active {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Utilități */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

/* Stiluri pentru pagina de setări */
.form-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.form-section h3 {
    font-family: "Merriweather", serif;
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--brand);
    border-bottom: 2px solid var(--brand-50);
    padding-bottom: 8px;
}

.paroh-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.paroh-name {
    font-size: 16px;
    color: var(--brand);
    margin-bottom: 8px;
}

.paroh-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.paroh-contact .contact-icon {
    font-size: 16px;
} 