/* Marketing Hesablamaları - Light Theme */
:root {
    --primary-color: #9E7564;
    --primary-dark: #8A6550;
    --primary-light: #B68C7A;
    --primary-lighter: #D4B8AB;
    --secondary-color: #6C757D;
    --success-color: #198754;
    --info-color: #0DCAF0;
    --warning-color: #FFC107;
    --danger-color: #DC3545;
    --light-color: #F8F9FA;
    --dark-color: #212529;
    --white: #FFFFFF;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --sidebar-bg: var(--white);
    --sidebar-border: var(--gray-300);
    --text-primary: var(--dark-color);
    --text-secondary: var(--gray-500);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gray-100);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Primary Color Overrides */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
.border-primary { border-color: var(--primary-color) !important; }

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-right: 1px solid var(--sidebar-border);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Sidebar Scrollbar Styles */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    margin: 2px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.sidebar .nav-link i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.user-avatar {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

/* Main Content */
.main-content {
    margin-left: 0;
    padding: 20px;
    min-height: 100vh;
    background-color: var(--gray-100);
}

@media (min-width: 768px) {
    .main-content {
        margin-left: 250px;
    }
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(158, 117, 100, 0.1);
    background-color: var(--white);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(158, 117, 100, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* Calculator Cards */
.calculator-card {
    transition: all 0.3s ease;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(158, 117, 100, 0.2);
}

.calculator-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 25px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.calculator-header h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.5rem;
}

.calculator-header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Result Display */
.result-display {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 25px;
    box-shadow: 0 5px 20px rgba(158, 117, 100, 0.3);
}

.result-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.result-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Form Styles */
.form-control, .form-select {
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(158, 117, 100, 0.25);
    background-color: var(--white);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    border-left: 4px solid;
}

.alert-primary {
    background-color: rgba(158, 117, 100, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-dark);
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    border-left-color: var(--success-color);
    color: #0a4e2b;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left-color: var(--warning-color);
    color: #664d03;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: var(--danger-color);
    color: #721c24;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    border-left-color: var(--info-color);
    color: #055160;
}

/* Table Styles */
.table {
    background-color: var(--white);
}

.table th {
    background-color: var(--gray-100);
    border: none;
    font-weight: 600;
    color: var(--text-primary);
    padding: 15px;
}

.table td {
    border: none;
    padding: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.table-hover tbody tr:hover {
    background-color: rgba(158, 117, 100, 0.05);
}

/* Navigation */
.nav-tabs .nav-link {
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    color: var(--text-secondary);
    margin-right: 5px;
    border-radius: 8px 8px 0 0;
}

.nav-tabs .nav-link.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Badges */
.badge {
    font-weight: 600;
    border-radius: 6px;
    padding: 6px 10px;
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: var(--gray-200);
}

.progress-bar {
    background-color: var(--primary-color);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.15);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 15px 15px 0 0;
    padding: 20px 25px;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border: none;
    padding: 15px 25px 25px;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid var(--gray-300);
    margin: 0 2px;
    border-radius: 6px;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-link:hover {
    background-color: var(--primary-lighter);
    border-color: var(--primary-color);
    color: white;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-secondary);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Calculator Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.calculator-item {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    text-decoration: none;
    color: var(--text-primary);
}

.calculator-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(158, 117, 100, 0.15);
    color: var(--text-primary);
    text-decoration: none;
}

.calculator-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 5px 15px rgba(158, 117, 100, 0.3);
}

/* Dashboard Stats */
.stats-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(158, 117, 100, 0.15);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stats-label {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    border-radius: 0 0 50px 50px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>') repeat;
    background-size: 50px 50px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Authentication Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--primary-color) 100%);
    padding: 20px;
}

.auth-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(158, 117, 100, 0.2);
    overflow: hidden;
    max-width: 400px;
    width: 100%;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 30px 30px;
    text-align: center;
}

.auth-body {
    padding: 40px 30px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

/* Footer */
.footer {
    background-color: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 40px 0;
    margin-top: 50px;
    color: var(--text-secondary);
}

/* Loading Spinner */
.spinner-border-primary {
    color: var(--primary-color);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .result-value {
        font-size: 2rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 15px;
    }
    
    .calculator-header {
        padding: 20px 15px;
    }
    
    .result-display {
        padding: 20px 15px;
    }
    
    .auth-header {
        padding: 30px 20px 20px;
    }
    
    .auth-body {
        padding: 30px 20px;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .btn,
    .alert,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--gray-400);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Utilities */
.shadow-primary {
    box-shadow: 0 5px 20px rgba(158, 117, 100, 0.2) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) 1;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
