/* Kurumsal Cafe Fizibilite Sistemi - CSS */
/* Profesyonel ve Modern Tasarım */

:root {
    /* Kurumsal Renk Paleti */
    --primary-color: #2c3e50;
    --primary-dark: #1a252f;
    --primary-light: #34495e;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #c0392b;
    --info-color: #3498db;
    
    /* Neutral Colors */
    --dark-color: #2c3e50;
    --gray-dark: #7f8c8d;
    --gray-medium: #bdc3c7;
    --gray-light: #ecf0f1;
    --white: #ffffff;
    --background: #f8f9fa;
    --border-color: #dee2e6;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 15px 30px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--white);
    padding: 1.25rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 500;
}

.user-info i {
    color: var(--white);
}

/* Navigation */
.nav {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    position: sticky;
    top: 70px;
    z-index: 999;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu li {
    flex: 1;
    min-width: 150px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.nav-menu a:hover {
    background: var(--gray-light);
    border-bottom-color: var(--secondary-color);
}

.nav-menu a.active {
    background: var(--primary-color);
    color: var(--white);
    border-bottom-color: var(--accent-color);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-content {
    padding: 2rem 0;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 4px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card-primary {
    background: var(--primary-color);
    color: var(--white);
}

.card-success {
    background: var(--success-color);
    color: var(--white);
}

.card-warning {
    background: var(--warning-color);
    color: var(--white);
}

.card-info {
    background: var(--info-color);
    color: var(--white);
}

.card-icon {
    font-size: 2.5rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.card-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.card-value {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.card-label {
    font-size: 0.875rem;
    opacity: 0.85;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 1rem;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.stat-content h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
}

.btn-success:hover {
    background: #229954;
}

.btn-warning {
    background: var(--warning-color);
    color: var(--white);
}

.btn-warning:hover {
    background: #d68910;
}

.btn-info {
    background: var(--info-color);
    color: var(--white);
}

.btn-info:hover {
    background: #2980b9;
}

.btn-secondary {
    background: var(--gray-dark);
    color: var(--white);
}

.btn-secondary:hover {
    background: #6c7a89;
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
}

.btn-danger:hover {
    background: #a93226;
}

.btn-icon {
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-icon:hover {
    background: var(--gray-light);
}

.btn-icon.btn-danger {
    color: var(--danger-color);
}

.btn-icon.btn-danger:hover {
    background: rgba(192, 57, 43, 0.1);
}

.button-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.data-table,
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.data-table thead,
.table thead {
    background: var(--primary-color);
    color: var(--white);
}

.data-table th,
.table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td,
.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr,
.table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover,
.table tbody tr:hover {
    background: var(--gray-light);
}

.highlight-row,
.active-row {
    background: rgba(52, 152, 219, 0.1) !important;
    font-weight: 600;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-success {
    background: var(--success-color);
    color: var(--white);
}

.badge-warning {
    background: var(--warning-color);
    color: var(--white);
}

.badge-danger {
    background: var(--danger-color);
    color: var(--white);
}

.badge-info {
    background: var(--info-color);
    color: var(--white);
}

.badge-ekipman {
    background: var(--primary-color);
    color: var(--white);
}

.badge-demirbaş,
.badge-demirbas {
    background: #8e44ad;
    color: var(--white);
}

.badge-dekorasyon {
    background: var(--warning-color);
    color: var(--white);
}

.badge-diğer,
.badge-diger {
    background: var(--gray-dark);
    color: var(--white);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-planlandı,
.status-planlandi {
    background: rgba(52, 152, 219, 0.1);
    color: var(--info-color);
    border: 1px solid var(--info-color);
}

.status-satın-alındı,
.status-satin-alindi {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.status-kuruldu {
    background: rgba(142, 68, 173, 0.1);
    color: #8e44ad;
    border: 1px solid #8e44ad;
}

/* Scenario Selector */
.scenario-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
    gap: 1rem;
}

.scenario-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.scenario-tab {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    background: var(--white);
}

.scenario-tab:hover {
    border-color: var(--secondary-color);
    background: var(--gray-light);
}

.scenario-tab.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.year-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.year-selector label {
    font-weight: 600;
    color: var(--dark-color);
}

.year-selector select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--white);
    transition: var(--transition);
}

.year-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Sections */
.section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Metrics */
.metric-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.metric-unit {
    font-size: 1.25rem;
    opacity: 0.7;
}

.metric-description {
    color: var(--gray-dark);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.metric-bar {
    height: 8px;
    background: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.metric-bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Card Stats */
.card-stat {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-label {
    color: var(--gray-dark);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Text Colors */
.text-success {
    color: var(--success-color) !important;
    font-weight: 700;
}

.text-warning {
    color: var(--warning-color) !important;
    font-weight: 700;
}

.text-danger {
    color: var(--danger-color) !important;
    font-weight: 700;
}

.text-info {
    color: var(--info-color) !important;
    font-weight: 700;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.alert-error {
    background: rgba(192, 57, 43, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

select.form-control {
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 4px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-dark);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 3px solid var(--primary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: 3% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #f1f1f1;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #eee;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.footer p {
    color: var(--dark-color);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu li {
        min-width: 100%;
    }
    
    .nav-menu a {
        width: 100%;
    }
    
    .scenario-selector {
        flex-direction: column;
    }
    
    .card-value {
        font-size: 2rem;
    }
    
    .metric-large {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .nav,
    .header,
    .footer,
    .btn,
    .action-buttons {
        display: none !important;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

/* Scroll to Top Button */
#scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1000;
    transition: var(--transition);
}

#scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.message {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message-success {
    background: var(--success-color);
    color: var(--white);
}

.message-error {
    background: var(--danger-color);
    color: var(--white);
}

/* Gelir Tahminleri Tablo Stilleri */
.highlight-cell {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    font-weight: 700;
    color: #1565c0;
}

.gider-cell {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
}

.toplam-gider-cell {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    font-weight: 700;
    color: #c62828;
}

.kar-cell {
    font-weight: 700;
    font-size: 1.05rem;
}

.kar-pozitif {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.kar-negatif {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
}

.total-row {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    font-weight: 700;
    border-top: 3px solid #7b1fa2;
    border-bottom: 3px solid #7b1fa2;
}

.total-row td {
    padding: 1.25rem 1rem;
    font-size: 1.05rem;
}

.total-row .highlight-cell {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
}

.total-row .gider-cell {
    background: linear-gradient(135deg, #f57c00 0%, #ef6c00 100%);
    color: white;
}

.total-row .toplam-gider-cell {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    color: white;
}

.total-row .kar-pozitif {
    background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
    color: white;
}

.total-row .kar-negatif {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    color: white;
}
