/* ============================================
   EXECUTOR AI - DESIGN TIP GAZETĂ
   Culori: Alb (#ffffff), Negru (#000000), Albastru (#1e40af)
   ============================================ */

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #ffffff;
    color: #000000;
    line-height: 1.6;
}

/* CONTAINER */
.container {
    display: flex;
    min-height: 100vh;
    border-top: 4px solid #1e40af;
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background: #000000;
    color: white;
    border-right: 3px solid #1e40af;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    text-align: center;
    padding: 30px 20px;
    background: #1e40af;
    border-bottom: 3px solid #000000;
}

.logo h1 {
    font-size: 22px;
    margin-bottom: 5px;
    font-family: 'Georgia', serif;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo p {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 1px;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #ffffff;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.menu-item:hover {
    background: #1a1a1a;
    border-left-color: #1e40af;
}

.menu-item.active {
    background: #1e40af;
    border-left-color: #ffffff;
    font-weight: 600;
}

.menu-separator {
    height: 2px;
    background: #1e40af;
    margin: 15px 0;
}

.menu-section-title {
    padding: 15px 20px 10px;
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.6;
    letter-spacing: 2px;
    font-weight: bold;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    margin-left: 260px;
    background: #f8f9fa;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* PAGE HEADER */
.page-header {
    background: #000000;
    color: white;
    padding: 30px 40px;
    border-bottom: 3px solid #1e40af;
}

.page-header h2 {
    font-size: 32px;
    margin-bottom: 8px;
    font-family: 'Georgia', serif;
    font-weight: bold;
    letter-spacing: 1px;
}

.page-header .subtitle {
    color: #cccccc;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* PAGE ACTIONS */
.page-actions {
    display: flex;
    gap: 10px;
    padding: 20px 40px;
    background: white;
    border-bottom: 2px solid #000000;
}

/* SEARCH INPUT */
.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #000000;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* BUTTONS */
.btn {
    padding: 12px 24px;
    border: 2px solid #000000;
    background: white;
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    background: #000000;
    color: white;
}

.btn-primary {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

.btn-primary:hover {
    background: #1e3a8a;
    border-color: #1e3a8a;
}

.btn-secondary {
    background: white;
    color: #000000;
}

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

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

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

/* TABLE INFO */
.table-info {
    padding: 15px 40px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.table-info strong {
    color: #1e40af;
    font-weight: 700;
}

/* PROFILE CARDS GRID */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 30px 40px;
}

/* PROFILE CARD - TIP GAZETĂ */
.profile-card {
    background: white;
    border: 3px solid #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #1e40af;
}

.profile-card:hover {
    box-shadow: 8px 8px 0 #1e40af;
    transform: translate(-4px, -4px);
}

.profile-header {
    background: #000000;
    color: white;
    padding: 20px;
    border-bottom: 2px solid #1e40af;
}

.profile-number {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.profile-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: 'Georgia', serif;
}

.profile-subtitle {
    font-size: 13px;
    opacity: 0.8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.profile-body {
    padding: 20px;
}

.profile-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-label {
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.profile-value {
    color: #374151;
}

.profile-value.highlight {
    color: #1e40af;
    font-weight: 700;
    font-size: 18px;
}

.profile-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 2px solid #000000;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border: 4px solid #000000;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    background: #000000;
    color: white;
    padding: 25px 30px;
    border-bottom: 4px solid #1e40af;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2 {
    font-size: 26px;
    font-family: 'Georgia', serif;
    font-weight: bold;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #1e40af;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1e40af;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1e40af;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-item {
    padding: 15px;
    background: #f8f9fa;
    border-left: 3px solid #1e40af;
}

.detail-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
    margin-bottom: 5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.detail-value {
    font-size: 15px;
    color: #374151;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.detail-value.large {
    font-size: 22px;
    font-weight: 700;
    color: #1e40af;
}

.modal-actions {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 2px solid #000000;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

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

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #000000;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 30px 40px;
}

.stat-card {
    background: white;
    border: 3px solid #000000;
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #1e40af;
}

.stat-card:hover {
    box-shadow: 6px 6px 0 #1e40af;
    transform: translate(-3px, -3px);
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #1e40af;
    font-family: 'Georgia', serif;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 60px 40px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-message {
    font-size: 18px;
    color: #6b7280;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* LOADING */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #6b7280;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
    }
    
    .profiles-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
}
