/* RevistaPresei Custom Styles */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
}

body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main {
    min-height: calc(100vh - 200px);
}

/* Cards and Sections */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

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

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Tables */
.table {
    background-color: white;
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #333;
}

.table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.375rem;
}

/* Dashboard Stats */
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card.success {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card.warning {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card h3 {
    margin: 0.5rem 0 0 0;
    font-size: 2.5rem;
    font-weight: bold;
}

.stat-card p {
    margin: 0;
    opacity: 0.9;
}

/* Modal Dialog */
.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

/* Wizard Steps */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.wizard-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.wizard-step::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #dee2e6;
    z-index: -1;
}

.wizard-step:last-child::after {
    display: none;
}

.wizard-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #dee2e6;
    color: #666;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.wizard-step.active .wizard-step-number {
    background-color: var(--primary-color);
    color: white;
}

.wizard-step.completed .wizard-step-number {
    background-color: var(--success-color);
    color: white;
}

/* Article Table */
.article-table {
    font-size: 0.9rem;
}

.article-table tbody tr {
    vertical-align: middle;
}

.article-image-thumb {
    max-width: 60px;
    max-height: 60px;
    border-radius: 0.25rem;
}

/* Section Badges */
.section-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.section-administratie {
    background-color: #cfe2ff;
    color: #084298;
}

.section-business {
    background-color: #d1e7dd;
    color: #0f5132;
}

.section-lifestyle {
    background-color: #ffeae6;
    color: #842029;
}

/* Editor Panels */
.editor-panel {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    min-height: 500px;
    max-height: 600px;
    overflow-y: auto;
}

.editor-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

/* Preview Frame */
.preview-frame {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    min-height: 500px;
    max-height: 600px;
    overflow-y: auto;
}

.preview-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Drag and Drop */
.drag-handle {
    cursor: grab;
    color: #6c757d;
}

.drag-handle:active {
    cursor: grabbing;
}

.dragging {
    opacity: 0.5;
}

/* Status Badges */
.badge-draft {
    background-color: #6c757d;
}

.badge-published {
    background-color: #28a745;
}

.badge-archived {
    background-color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-card h3 {
        font-size: 2rem;
    }

    .wizard-steps {
        margin-bottom: 1rem;
    }

    .wizard-step-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .editor-panel,
    .preview-frame {
        min-height: 400px;
        max-height: 500px;
    }
}

/* Loading Spinner */
.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

.loading {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Validation */
.is-invalid .form-control {
    border-color: var(--danger-color);
}

.invalid-feedback {
    display: block;
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.is-valid .form-control {
    border-color: var(--success-color);
}

.valid-feedback {
    display: block;
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}
