/* DIJIPHARMA Yöneticisi Profile Styles */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
    color: white;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pill-icon {
    width: 28px;
    height: 16px;
    border-radius: 14px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pill-half {
    width: 50%;
    height: 100%;
}

.pill-red {
    background: #dc2626;
}

.pill-blue {
    background: #2563eb;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
}

.logo-diji {
    color: #dc2626;
}

.logo-pharma {
    color: #2563eb;
}

/* Navigation Styles */
.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 800px;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-link.active {
    color: #1e40af;
    background: white;
    border-color: white;
    font-weight: 600;
}

.nav-link i {
    font-size: 16px;
}

/* User Menu Styles */
.header-right {
    display: flex;
    align-items: center;
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.user-dropdown a:hover {
    background: #f8fafc;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

/* Main Content */
.main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Section Styles */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

.section-header {
    margin-bottom: 2rem;
}

.section-header h1 {
    font-size: 2rem;
    color: #1e40af;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
    color: white;
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Special handling for KPI card - ensure it gets full width when alone or adequate space */
.kpi-card {
    grid-column: 1 / -1;
    max-width: 100%;
}

/* KPI Card */
.kpi-card .card-header {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 1.25rem;
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.kpi-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    height: 100%;
    min-height: 90px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.kpi-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #1e40af;
}

.kpi-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.kpi-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kpi-label {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 6px;
    font-weight: 500;
    line-height: 1.2;
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 6px;
    line-height: 1;
}

.kpi-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.kpi-change.positive {
    color: #059669;
}

.kpi-change.negative {
    color: #dc2626;
}

/* Chart Styles */
.chart-card .card-header {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
}

.chart-container {
    padding: 2rem;
    height: 350px;
    position: relative;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: 100%;
}

/* Fallback mock chart when Chart.js fails */
.mock-chart-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #64748b;
    font-size: 0.9rem;
}

.mock-chart-fallback i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #1e40af;
}

/* Static Chart Styles */
.static-chart {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chart-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-legend {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.chart-data {
    display: flex;
    align-items: end;
    gap: 1rem;
    height: 200px;
    padding: 1rem 0;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.data-row {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.month {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.bars {
    display: flex;
    gap: 3px;
    align-items: end;
    height: 100%;
}

.bar {
    width: 18px;
    border-radius: 3px 3px 0 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.bar:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.bar.revenue {
    background: linear-gradient(to top, #1e40af, #3b82f6);
}

.bar.profit {
    background: linear-gradient(to top, #10b981, #34d399);
}

.chart-summary {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-item .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e40af;
}

.summary-item .label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.summary-item .change {
    font-size: 0.75rem;
    font-weight: 600;
}

.summary-item .change.positive {
    color: #10b981;
}

.summary-item .change.negative {
    color: #dc2626;
}

.chart-controls {
    display: flex;
    gap: 8px;
}

.chart-controls .btn {
    padding: 6px 12px;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.chart-controls .btn.active {
    background: white;
    color: #1e40af;
    border-color: white;
}

/* Department Card */
.department-card .card-header {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
}

.department-grid {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.department-item {
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
}

.department-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.department-header i {
    font-size: 1.5rem;
    color: #1e40af;
}

.department-header h4 {
    flex: 1;
    font-size: 1.1rem;
    color: #1e40af;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

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

.status-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.info {
    background: #dbeafe;
    color: #1e40af;
}

.department-metrics {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.metric {
    text-align: center;
}

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

.metric-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1e40af;
}

.progress-bar {
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1e40af 0%, #3730a3 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Initiatives Card */
.initiatives-card .card-header {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
}

.initiatives-list {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.initiative-item {
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
}

.initiative-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.initiative-header h4 {
    color: #1e40af;
    font-size: 1.1rem;
}

.priority-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.high {
    background: #fee2e2;
    color: #dc2626;
}

.priority-badge.medium {
    background: #fef3c7;
    color: #d97706;
}

.priority-badge.low {
    background: #dbeafe;
    color: #2563eb;
}

.initiative-progress {
    margin-bottom: 1rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 8px;
}

.initiative-tags {
    display: flex;
    gap: 8px;
}

.tag {
    padding: 4px 8px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Operations Grid */
.operations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Supply Chain Card */
.supply-chain-card .card-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.supply-metrics {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.supply-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.supply-label {
    color: #64748b;
    font-size: 0.875rem;
}

.supply-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.supply-value.good {
    color: #059669;
}

.supply-value.excellent {
    color: #047857;
}

.supply-value.warning {
    color: #d97706;
}

.supply-bar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.supply-fill {
    height: 100%;
    background: #10b981;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.supply-fill.warning {
    background: #f59e0b;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Quality Card */
.quality-card .card-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.quality-stats {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quality-metric {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.quality-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.quality-info {
    flex: 1;
}

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

.quality-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #8b5cf6;
}

.quality-alerts {
    padding: 0 2rem 2rem;
}

.quality-alerts h4 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: #64748b;
    font-size: 0.875rem;
}

.alert-item i {
    font-size: 8px;
}

.alert-item i.warning {
    color: #f59e0b;
}

.alert-item i.info {
    color: #3b82f6;
}

/* Process Card */
.process-card .card-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.process-chart {
    padding: 2rem;
    height: 250px;
    position: relative;
}

/* Team Performance Card */
.team-performance-card .card-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.team-list {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.team-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.team-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.team-info {
    flex: 1;
}

.team-info h4 {
    color: #374151;
    margin-bottom: 4px;
}

.team-info p {
    color: #64748b;
    font-size: 0.875rem;
}

.team-score {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.875rem;
}

.team-score.excellent {
    background: #dcfce7;
    color: #166534;
}

.team-score.good {
    background: #fef3c7;
    color: #92400e;
}

/* Strategy Grid */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Goals Card */
.goals-card .card-header {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
}

.goals-list {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.goal-item {
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
}

.goal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.goal-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.goal-info {
    flex: 1;
}

.goal-info h4 {
    color: #374151;
    margin-bottom: 4px;
}

.goal-info p {
    color: #64748b;
    font-size: 0.875rem;
}

.goal-progress {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1e40af;
}

/* Market Card */
.market-card .card-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.market-chart {
    padding: 2rem;
    height: 250px;
    position: relative;
}

.market-insights {
    padding: 0 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: #374151;
}

.text-success {
    color: #059669;
}

.text-warning {
    color: #d97706;
}

.text-info {
    color: #0ea5e9;
}

/* Risk Card */
.risk-card .card-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.risk-matrix {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.risk-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.risk-item.high {
    background: #fef2f2;
    border-color: #fecaca;
}

.risk-item.medium {
    background: #fffbeb;
    border-color: #fed7aa;
}

.risk-item.low {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.risk-level {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
}

.risk-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.risk-item.high .risk-dot {
    background: #dc2626;
}

.risk-item.medium .risk-dot {
    background: #f59e0b;
}

.risk-item.low .risk-dot {
    background: #3b82f6;
}

.risk-desc {
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
}

.risk-action .btn {
    padding: 4px 12px;
    font-size: 0.75rem;
}

/* Innovation Card */
.innovation-card .card-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.innovation-pipeline {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pipeline-stage {
    text-align: center;
    flex: 1;
}

.pipeline-stage h4 {
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.pipeline-count {
    font-size: 1.5rem;
    font-weight: bold;
    color: #8b5cf6;
    margin-bottom: 8px;
}

.pipeline-projects {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.project-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
}

.project-dot.active {
    background: #3b82f6;
}

.project-dot.test {
    background: #f59e0b;
}

.project-dot.launch {
    background: #10b981;
}

.pipeline-arrow {
    font-size: 1.2rem;
    color: #8b5cf6;
    font-weight: bold;
}

/* Performance Grid */
.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Executive Card */
.executive-card .card-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.period-selector {
    display: flex;
    align-items: center;
}

.form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
}

.executive-metrics {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.exec-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.exec-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-bottom: 1rem;
}

.exec-data {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.exec-label {
    color: #64748b;
    font-size: 0.875rem;
}

.exec-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #dc2626;
}

.exec-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.exec-change.positive {
    color: #059669;
}

/* Regional Card */
.regional-card .card-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.regional-list {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.region-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.region-info {
    flex: 1;
}

.region-info h4 {
    color: #374151;
    margin-bottom: 4px;
}

.region-info p {
    color: #64748b;
    font-size: 0.875rem;
}

.region-metrics {
    text-align: right;
    margin-right: 1rem;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #6366f1;
    margin-bottom: 4px;
}

.metric-change.positive {
    color: #059669;
    font-size: 0.875rem;
    font-weight: 600;
}

.metric-change.negative {
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 600;
}

.region-chart {
    width: 60px;
}

.mini-chart {
    border-radius: 2px;
}

/* Product Performance Card */
.product-performance-card .card-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.product-chart {
    padding: 2rem;
    height: 300px;
    position: relative;
}

/* Competitive Card */
.competitive-card .card-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.competitive-table {
    padding: 2rem;
    overflow-x: auto;
}

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

.competitive-table th,
.competitive-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.competitive-table th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
}

.competitive-table td {
    color: #64748b;
}

.competitive-table .own-company {
    background: #f0f9ff;
}

.competitive-table .own-company td {
    color: #1e40af;
}

.status-badge.secondary {
    background: #f1f5f9;
    color: #64748b;
}

/* Finance Grid */
.finance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Financial Summary Card */
.financial-summary-card .card-header {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.summary-period {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    color: white;
}

.financial-metrics {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fin-metric {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.fin-metric.revenue {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #bbf7d0;
}

.fin-metric.profit {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fcd34d;
}

.fin-metric.expense {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-color: #fca5a5;
}

.fin-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.fin-data {
    flex: 1;
}

.fin-label {
    color: #374151;
    font-size: 0.875rem;
    margin-bottom: 4px;
    font-weight: 500;
}

.fin-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #059669;
    margin-bottom: 4px;
}

.fin-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.fin-change.positive {
    color: #059669;
}

/* Cash Flow Card */
.cashflow-card .card-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.cashflow-chart {
    padding: 2rem;
    height: 250px;
    position: relative;
}

.cashflow-summary {
    padding: 0 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cash-item {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 8px 0;
}

.cash-label {
    flex: 1;
    color: #64748b;
    font-size: 0.875rem;
}

.cash-value {
    font-weight: 600;
    font-size: 0.875rem;
}

.cash-value.positive {
    color: #059669;
}

.cash-value.negative {
    color: #dc2626;
}

.cash-item.total {
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
    margin-top: 8px;
}

.cash-item.total .cash-value {
    font-size: 1rem;
    font-weight: bold;
}

/* Budget Card */
.budget-card .card-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.budget-items {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.budget-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.budget-category {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.budget-category i {
    font-size: 1.2rem;
    color: #8b5cf6;
}

.budget-numbers {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
}

.budget-planned {
    color: #64748b;
}

.budget-actual {
    font-weight: 600;
}

.budget-actual.over {
    color: #dc2626;
}

.budget-actual.under {
    color: #059669;
}

.budget-actual.on-target {
    color: #8b5cf6;
}

.budget-variance {
    font-weight: bold;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.budget-variance.over {
    background: #fef2f2;
    color: #dc2626;
}

.budget-variance.under {
    background: #f0fdf4;
    color: #059669;
}

.budget-variance.on-target {
    background: #faf5ff;
    color: #8b5cf6;
}

/* Ratios Card */
.ratios-card .card-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.ratios-grid {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.ratio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.ratio-label {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.ratio-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.ratio-value.excellent {
    color: #059669;
}

.ratio-value.good {
    color: #f59e0b;
}

.ratio-trend i {
    font-size: 1rem;
    color: #059669;
}

/* Profile Styles */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-info-card .card-header {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
}

.profile-header {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.profile-details {
    flex: 1;
}

.profile-details h2 {
    color: #1e40af;
    margin-bottom: 8px;
}

.profile-title {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.profile-email {
    color: #64748b;
    font-size: 0.875rem;
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid #f1f5f9;
}

.tab-btn {
    flex: 1;
    padding: 1rem 2rem;
    background: none;
    border: none;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    background: #f8fafc;
    color: #1e40af;
}

.tab-btn.active {
    background: #f0f9ff;
    color: #1e40af;
    border-bottom: 2px solid #1e40af;
}

.tab-content {
    display: none;
    padding: 2rem;
}

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

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

.form-group label {
    display: block;
    color: #374151;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    background: #f9fafb;
}

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

.toggle-switch {
    width: 50px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-switch.active {
    background: #1e40af;
}

.toggle-slider {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(26px);
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
    color: white;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    background: #1e40af;
    color: white;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    background: #059669;
}

.notification.warning {
    background: #d97706;
}

.notification.error {
    background: #dc2626;
}

.notification.info {
    background: #0ea5e9;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-grid,
    .operations-grid,
    .strategy-grid,
    .performance-grid,
    .finance-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .kpi-card {
        grid-column: auto;
    }
    
    .kpi-grid {
        padding: 1.25rem;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }
    
    .header-center {
        width: 100%;
        max-width: none;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.875rem;
    }
    
    .nav-link span {
        display: none;
    }
    
    .main {
        padding: 1rem;
    }
    
    .dashboard-grid,
    .operations-grid,
    .strategy-grid,
    .performance-grid,
    .finance-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .ratios-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .section-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .card-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .nav-link {
        padding: 6px 8px;
    }
    
    .kpi-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .competitive-table {
        font-size: 0.75rem;
    }
    
    .competitive-table th,
    .competitive-table td {
        padding: 8px 6px;
    }
}

/* Header Styles - Index Style Navigation */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid #e2e8f0;
}

.navbar {
    background: transparent;
    box-shadow: none;
    border: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.nav-logo .diji {
    color: #dc2626;
}

.nav-logo .pharma {
    color: #3b82f6;
}

.pill-icon-nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pill-icon-nav .pill {
    width: 25px;
    height: 12px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
}

.pill-icon-nav .pill-half {
    width: 50%;
    height: 100%;
}

.pill-icon-nav .red {
    background: #dc2626;
}

.pill-icon-nav .blue {
    background: #3b82f6;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    align-items: center;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #64748b;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #1e3a8a;
    background: #f1f5f9;
}

.nav-link i {
    font-size: 1rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notifications {
    position: relative;
}

.notification-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.notification-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    color: #334155;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s;
    gap: 0.75rem;
}

.user-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
}

.avatar-letter {
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 1000;
    display: none;
    margin-top: 8px;
}

.user-dropdown a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.user-dropdown a:hover {
    background-color: #f5f5f5;
}

.user-dropdown hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #eee;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: #1e3a8a;
    transition: 0.3s;
}

.logo-link {
    text-decoration: none !important;
    color: inherit !important;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-user {
        gap: 0.5rem;
    }
    
    .user-btn span {
        display: none;
    }
}

/* Footer Styles */
.main-footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 3rem 0 0 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fbbf24;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .diji {
    color: #dc2626;
    font-size: 2rem;
    font-weight: 800;
}

.footer-logo .pharma {
    color: #3b82f6;
    font-size: 2rem;
    font-weight: 800;
}

.pill-icon-footer {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pill-icon-footer .pill {
    width: 30px;
    height: 15px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
}

.pill-icon-footer .pill-half {
    width: 50%;
    height: 100%;
}

.pill-icon-footer .red {
    background: #dc2626;
}

.pill-icon-footer .blue {
    background: #3b82f6;
}

.footer-description {
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fbbf24;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #e2e8f0;
}

.contact-item i {
    color: #fbbf24;
    width: 20px;
}

/* Social Media Links */
.social-media {
    margin-top: 1.5rem;
}

.social-media h5 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.facebook:hover {
    background: #166fe5;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.youtube {
    background: #ff0000;
}

.social-link.youtube:hover {
    background: #cc0000;
}

.social-link i {
    font-size: 1.1rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #fbbf24;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .footer-bottom-links {
        gap: 1rem;
    }
}

/* Fixed Profile Navigation Sidebar */
.profile-nav-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 200px;
}

.profile-nav-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.profile-nav-card h3 {
    color: #1e40af;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-nav-card h3 i {
    color: #3b82f6;
}

.profile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.profile-nav-item:hover {
    background: #3b82f6;
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.profile-nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Responsive Design for Profile Navigation */
@media (max-width: 1200px) {
    .profile-nav-sidebar {
        left: 10px;
        width: 180px;
    }
    
    .profile-nav-card {
        padding: 15px;
    }
    
    .profile-nav-item {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .profile-nav-sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
}

/* Main content margin adjustment for profile nav */
.main-content, .main {
    margin-left: 240px;
}

@media (max-width: 1200px) {
    .main-content, .main {
        margin-left: 210px;
    }
}

@media (max-width: 768px) {
    .main-content, .main {
        margin-left: 0 !important;
    }
}

/* Operations Section - New Components */

/* Crisis Management */
.crisis-management-card {
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    border: none;
    color: #92400e;
}

.crisis-management-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(146, 64, 14, 0.2);
}

.crisis-status {
    padding: 20px 0;
}

.crisis-level {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.crisis-indicator i {
    color: #10b981;
    font-size: 1.5em;
}

.crisis-info .crisis-label {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 4px;
}

.crisis-info .crisis-value {
    font-size: 1.2em;
    font-weight: 700;
}

.crisis-actions h4 {
    margin-bottom: 15px;
    font-size: 1em;
    font-weight: 600;
}

.protocol-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.protocol-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.protocol-item:hover {
    background: rgba(255, 255, 255, 0.6);
}

.protocol-item i {
    font-size: 1.2em;
    margin-right: 10px;
}

.protocol-item span {
    flex: 1;
    font-weight: 500;
}

.protocol-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.protocol-btn.active {
    background: #10b981;
    color: white;
}

.protocol-btn.ready {
    background: #6b7280;
    color: white;
}

.protocol-btn:hover {
    transform: translateY(-1px);
}

/* Real-time Operations Dashboard */
.operations-dashboard-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    border: none;
}

.operations-dashboard-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.refresh-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    font-size: 0.9em;
}

.rotating {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.live-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px 0;
}

.live-metric {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.live-metric:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
}

.metric-icon.production {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.metric-icon.logistics {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.metric-icon.warehouse {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.metric-icon.energy {
    background: linear-gradient(135deg, #10b981, #059669);
}

.metric-data .metric-label {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 4px;
}

.metric-data .metric-value {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 4px;
}

.metric-data .metric-status {
    font-size: 0.8em;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
}

.metric-status.running {
    background: #10b981;
    color: white;
}

.metric-status.good {
    background: #3b82f6;
    color: white;
}

.metric-status.optimal {
    background: #8b5cf6;
    color: white;
}

/* Facility Management */
.facility-management-card {
    background: white;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.facility-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.facility-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a, #3730a3);
    color: white;
}

.facility-info .facility-label {
    font-size: 0.85em;
    color: #64748b;
    margin-bottom: 4px;
}

.facility-info .facility-value {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 4px;
}

.facility-info .facility-status {
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 8px;
    display: inline-block;
}

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

.facility-status.good {
    background: #dbeafe;
    color: #1e40af;
}

.facility-status.excellent {
    background: #f3e8ff;
    color: #7c3aed;
}

.facility-status.secure {
    background: #fef3c7;
    color: #92400e;
}

.maintenance-schedule h4 {
    margin-bottom: 15px;
    color: #1e293b;
    font-size: 1em;
}

.maintenance-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.maintenance-date {
    font-size: 0.85em;
    font-weight: 600;
    color: #1e3a8a;
    min-width: 50px;
}

.maintenance-info {
    flex: 1;
}

.maintenance-info .maintenance-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.maintenance-info .maintenance-type {
    font-size: 0.85em;
    color: #64748b;
}

.maintenance-priority {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
}

.maintenance-priority.high {
    background: #fee2e2;
    color: #dc2626;
}

.maintenance-priority.medium {
    background: #fef3c7;
    color: #d97706;
}

.maintenance-priority.low {
    background: #dcfce7;
    color: #16a34a;
}

/* Operational Alerts */
.operational-alerts-card {
    background: white;
}

.alert-summary {
    display: flex;
    gap: 10px;
    align-items: center;
}

.alert-count {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.alert-count.critical {
    background: #fee2e2;
    color: #dc2626;
}

.alert-count.warning {
    background: #fef3c7;
    color: #d97706;
}

.alert-count.info {
    background: #dbeafe;
    color: #1e40af;
}

.alerts-container {
    max-height: 400px;
    overflow-y: auto;
}

.alert-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 4px solid;
}

.alert-item.critical {
    background: #fef2f2;
    border-left-color: #dc2626;
}

.alert-item.warning {
    background: #fffbeb;
    border-left-color: #d97706;
}

.alert-item.info {
    background: #eff6ff;
    border-left-color: #1e40af;
}

.alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-item.critical .alert-icon {
    background: #dc2626;
    color: white;
}

.alert-item.warning .alert-icon {
    background: #d97706;
    color: white;
}

.alert-item.info .alert-icon {
    background: #1e40af;
    color: white;
}

.alert-content {
    flex: 1;
}

.alert-content .alert-title {
    font-weight: 700;
    margin-bottom: 4px;
    color: #1e293b;
}

.alert-content .alert-description {
    font-size: 0.9em;
    color: #64748b;
    margin-bottom: 6px;
}

.alert-content .alert-time {
    font-size: 0.8em;
    color: #9ca3af;
}

.alert-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.alert-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.alert-btn.resolve {
    background: #16a34a;
    color: white;
}

.alert-btn.details {
    background: #6b7280;
    color: white;
}

.alert-btn.acknowledge {
    background: #d97706;
    color: white;
}

.alert-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* ====================================
   PAZARLAMA OPERASYON KARTLARI STYLES
   ==================================== */

/* Promosyon Dağıtımı Kartı */
.promotion-distribution-card {
    background: white;
    color: #334155;
}

.promotion-distribution-card .card-header {
    background: #1e40af;
    color: white;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promotion-distribution-card .status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
}

.promotion-metrics {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.promotion-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.promotion-label {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

.promotion-value {
    font-size: 2rem;
    font-weight: bold;
}

.promotion-value.good {
    color: #1e40af;
}

.promotion-value.excellent {
    color: #1e40af;
}

.promotion-value.warning {
    color: #1e40af;
}

.promotion-detail {
    font-size: 0.75rem;
    opacity: 0.8;
}

.promotion-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.promotion-fill {
    height: 100%;
    background: #1e40af;
    border-radius: 3px;
}

.promotion-distribution-card {
    position: relative;
    padding-bottom: 4rem;
}

.promotion-distribution-card .btn {
    background: #1e40af;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
}

.promotion-distribution-card .btn:hover {
    background: #1e3a8a;
}

/* Eğitim Kampanya Kartı */
.education-campaign-card {
    background: white;
    color: #334155;
}

.education-campaign-card .card-header {
    background: #1e40af;
    color: white;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    padding: 1.5rem;
}

.education-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.education-metric {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.education-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e40af;
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
}

.education-info {
    flex: 1;
}

.education-label {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.education-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.education-recent h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    opacity: 0.9;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.activity-item i.fa-circle {
    font-size: 0.5rem;
}

.activity-item i.fa-circle.success {
    color: #10b981;
}

.activity-item i.fa-circle.info {
    color: #3b82f6;
}

/* Eczane Katılım Analizi Kartı */
.pharmacy-participation-card {
    background: white;
    color: #334155;
}

.pharmacy-participation-card .card-header {
    background: #1e40af;
    color: white;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    padding: 1.5rem;
}

.participation-chart {
    display: grid;
    gap: 1.5rem;
}

.participation-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.summary-item {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.summary-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e40af;
}

.summary-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.participation-regions {
    display: grid;
    gap: 0.75rem;
}

.region-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
}

.region-name {
    min-width: 70px;
    font-weight: 500;
}

.region-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.region-fill {
    height: 100%;
    background: #1e40af;
    border-radius: 4px;
}

.region-percent {
    min-width: 40px;
    font-weight: 600;
    color: #1e40af;
}

/* Mümessil Performansı Kartı */
.representative-performance-card {
    background: white;
    color: #334155;
}

.representative-performance-card .card-header {
    background: #1e40af;
    color: white;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    padding: 1.5rem;
}

.representative-list {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.rep-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.rep-avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e40af;
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
}

.rep-info {
    flex: 1;
}

.rep-info h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.rep-info p {
    font-size: 0.875rem;
    opacity: 0.8;
}

.rep-score {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1rem;
}

.rep-score.excellent {
    background: #1e40af;
    color: white;
}

.rep-score.good {
    background: #1e40af;
    color: white;
}

.representative-performance-card .btn {
    background: #1e40af;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.representative-performance-card .btn:hover {
    background: #1e3a8a;
}

/* Banner Reklam İstatistikleri Kartı */
.banner-stats-card {
    background: white;
    color: #334155;
}

.banner-stats-card .card-header {
    background: #1e40af;
    color: white;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-stats-card .btn {
    background: white;
    color: #1e40af;
    border: 2px solid white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.banner-stats-card .btn:hover {
    background: #f8fafc;
}

.banner-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.banner-metric {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.banner-metric .metric-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e40af;
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
}

.banner-metric .metric-data {
    flex: 1;
}

.banner-metric .metric-label {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.banner-metric .metric-value {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Sponsor Eğitim Yönetimi Kartı */
.sponsor-education-card {
    background: white;
    color: #334155;
}

.sponsor-education-card .card-header {
    background: #1e40af;
    color: white;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    padding: 1.5rem;
}

.sponsor-stats {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.sponsor-metric {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.sponsor-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

.sponsor-icon.sponsored {
    background: #1e40af;
    color: white;
}

.sponsor-icon.pending {
    background: #1e40af;
    color: white;
}

.sponsor-icon.revenue {
    background: #1e40af;
    color: white;
}

.sponsor-data {
    flex: 1;
}

.sponsor-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.sponsor-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.sponsor-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
    display: inline-block;
}

.sponsor-status.active {
    background: #1e40af;
    color: white;
}

.sponsor-status.pending {
    background: #1e40af;
    color: white;
}

.sponsor-status.success {
    background: #1e40af;
    color: white;
}

.sponsor-education-card .btn {
    background: #1e40af;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.sponsor-education-card .btn:hover {
    background: #1e3a8a;
}


/* Responsive Design for Marketing Operation Cards */
@media (max-width: 1200px) {
    .education-stats {
        grid-template-columns: 1fr;
    }
    
    .banner-metrics {
        grid-template-columns: 1fr;
    }
    
    .participation-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .promotion-metrics,
    .education-stats,
    .banner-metrics {
        grid-template-columns: 1fr;
    }
    
    .rep-item,
    .sponsor-metric {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .region-item {
        flex-wrap: wrap;
    }
    
    .region-bar {
        min-width: 100%;
    }
}

/* Responsive Design for New Components */
@media (max-width: 1200px) {
    .live-metrics {
        grid-template-columns: 1fr;
    }
    
    .facility-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .facility-grid {
        grid-template-columns: 1fr;
    }
    
    .alert-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .alert-actions {
        flex-direction: row;
    }
}