/* OFIS ROVASIS - MODERN VE DÜZENLİ TASARIM */

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

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ana Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ==============================================================================
   SIDEBAR (Sol Menü)
   ============================================================================== */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

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

.sidebar-logo-fallback i {
    font-size: 1.8rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.firma-logo-img {
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sidebar-menu {
    flex: 1;
    padding: 16px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    margin: 2px 12px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    font-size: 0.95rem;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(4px);
}

.menu-item.active {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.menu-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.menu-item span {
    font-weight: 500;
}

.menu-item.logout {
    color: #f87171;
}

.menu-item.logout:hover {
    background-color: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    background: rgba(0, 0, 0, 0.2);
}

/* ==============================================================================
   MAIN CONTENT (Ana İçerik)
   ============================================================================== */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-header {
    background: #ffffff;
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 400;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.user-avatar-img {
    background: none;
    padding: 0;
    overflow: hidden;
}

.user-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
}

.user-company {
    font-size: 0.85rem;
    color: #64748b;
}

.content-body {
    flex: 1;
    padding: 32px;
}

/* ==============================================================================
   INFO CARDS
   ============================================================================== */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.info-card-small {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-card-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
}

.card-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 500;
}

.card-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
}

.info-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.card-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header i {
    font-size: 1.5rem;
    color: #3b82f6;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
}

.card-body {
    padding-top: 8px;
}

.card-text {
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ==============================================================================
   SECTIONS
   ============================================================================== */
.section {
    margin-bottom: 32px;
}

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

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 0.875rem;
    color: #64748b;
}

/* ==============================================================================
   ACTION CARDS
   ============================================================================== */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.action-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

.action-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.action-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}

.action-content p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

/* ==============================================================================
   BUTTONS
   ============================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary i {
    font-size: 0.875rem;
}

/* ==============================================================================
   DAILY MENU PAGE
   ============================================================================== */
.daily-menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 0;
}

.day-menu-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.day-menu-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.day-menu-card.today {
    border: 2px solid #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.day-menu-header {
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-menu-card.today .day-menu-header {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border-bottom-color: #3b82f6;
}

.day-menu-date {
    display: flex;
    align-items: center;
    gap: 16px;
}

.day-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.day-menu-card.today .day-number {
    color: #3b82f6;
}

.day-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.month-name {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
}

.day-menu-card.today .month-name {
    color: #3b82f6;
}

.day-name {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.today-badge {
    background: #3b82f6;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-menu-body {
    padding: 20px;
}

.meal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.meal-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.meal-item.main-meal {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
}

.meal-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #e2e8f0;
    color: #475569;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.meal-item.main-meal .meal-number {
    background: #fbbf24;
    color: #ffffff;
}

.meal-name {
    flex: 1;
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
}

.main-meal-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f59e0b;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.main-meal-badge i {
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .daily-menu-container {
        grid-template-columns: 1fr;
    }
}

/* ==============================================================================
   PROFILE PAGE - TABS
   ============================================================================== */
.tabs-container {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.profile-photo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e2e8f0;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-photo-placeholder i {
    font-size: 4rem;
    color: #fff;
}

.tabs-nav {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
    overflow-x: auto;
}

.tab-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
    min-width: 150px;
}

.tab-button:hover {
    background: rgba(59, 130, 246, 0.05);
    color: #3b82f6;
}

.tab-button.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: #ffffff;
    font-weight: 600;
}

.tab-button i {
    font-size: 1rem;
}

.tabs-content {
    position: relative;
}

.tab-pane {
    display: none;
    padding: 0;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

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

.tab-pane .info-card {
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.tab-pane .card-header {
    padding: 24px 24px 0 24px;
    margin-bottom: 0;
    border-bottom: none;
}

.tab-pane .card-body {
    padding: 24px;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.info-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #64748b;
    font-size: 0.95rem;
}

.info-label i {
    width: 20px;
    text-align: center;
    color: #3b82f6;
}

.info-value {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
}

.text-muted {
    color: #94a3b8;
    font-style: italic;
}

.profile-form {
    max-width: 500px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #0f172a;
    font-size: 0.95rem;
    }
    
.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background-color: #fff;
    transition: all 0.2s ease;
    font-family: inherit;
    }
    
.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }
    
.form-text {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #64748b;
    }
    
.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    border: 1px solid;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
    }
    
.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
    }
    
.alert-warning {
    background-color: #fffbeb;
    color: #854d0e;
    border-color: #fde68a;
    }
    
.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

/* ==============================================================================
   RESPONSIVE
   ============================================================================== */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .main-content {
        margin-left: 240px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar-logo span,
    .menu-item span {
        display: none;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .content-body {
        padding: 20px;
    }
    
    .content-header {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .profile-form {
        max-width: 100%;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-button {
        border-bottom: none;
        border-left: 3px solid transparent;
        justify-content: flex-start;
        min-width: auto;
    }
    
    .tab-button.active {
        border-left-color: #3b82f6;
        border-bottom-color: transparent;
    }
}
