:root {
    --primary-color: #0288d1; /* Su mavisi */
    --secondary-color: #03a9f4;
    --text-color: #333;
    --bg-color: #e1f5fe; /* Çok açık mavi arka plan */
    --card-bg: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-right: auto;
    margin-left: auto;
}

.container {
    max-width: 1200px;
}

/* Custom Header Classes */
.background-1 {
    background-color: #0288d1; /* Primary color */
}

.neutral-0 {
    color: white !important;
}

.white-color {
    color: white !important;
}

.sticky-bar {
    position: sticky;
    top: 0;
    z-index: 300;
    background: white;
}

.background-body {
    background-color: white;
    border-bottom: 1px solid #eee;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
}

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

.header-logo {
    display: flex;
    justify-content: flex-start;
}

.header-logo img {
    max-height: 50px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

/* Navigation Menu Fixes */
.nav-main-menu ul {
    margin-bottom: 0; /* Bootstrap override */
    padding-left: 0; /* Bootstrap override */
}

.nav-main-menu a {
    padding: 15px 10px;
    font-size: 0.95rem;
    color: #333;
    text-decoration: none;
}

.nav-main-menu a:hover {
    color: var(--primary-color);
}

/* Dropdown Fixes */
.sub-menu, .right-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sub-menu li a, .right-submenu li a {
    padding: 10px 20px;
    display: block;
    border-bottom: 1px solid #f5f5f5;
}

/* Button Fixes */
.btn-brand {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
}

.btn-brand:hover {
    background-color: var(--secondary-color);
    color: white !important;
}

.burger-icon-2 {
    background-color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
}

/* Utility Classes from HTML */
.mr-10 { margin-right: 10px; }
.mr-15 { margin-right: 15px; }
.pe-none { pointer-events: none; }
.nowrap { white-space: nowrap; }

/* Hide dark mode image by default */
.dark-mode { display: none; }

/* Responsive */
@media (max-width: 992px) {
    .header-nav { display: none; }
    .top-bar { display: none; }
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .top-bar {
        display: none; /* Hide top bar on mobile */
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        gap: 15px;
        font-size: 0.9rem;
    }
    
    .logo {
        max-height: 60px;
    }
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.card h3 {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.filter-section {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}

.filter-section input, .filter-section select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.filter-section input {
    flex: 1;
}

.invoice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding-bottom: 40px;
}

.invoice-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
    transition: transform 0.2s;
    border-left: 5px solid var(--primary-color);
}

.invoice-card:hover {
    transform: translateY(-5px);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.invoice-type {
    background: #e8f8f5;
    color: var(--secondary-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.invoice-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 15px;
}

.invoice-details {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.btn-pay {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-pay:hover {
    background-color: var(--secondary-color);
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* Biraz daha yukarı aldım */
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    text-align: left; /* Form için sola hizalı daha iyi */
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.credit-card-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.credit-card-form h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #555;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 20px;
    width: 100%; /* Mobilde tam genişlik daha iyi */
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    header {
        padding: 1rem 0;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .logo {
        max-height: 100px; /* Mobilde logo biraz küçülsün */
    }

    .container {
        padding: 0 15px;
    }

    .stats {
        grid-template-columns: 1fr; /* İstatistikler alt alta */
        gap: 10px;
    }

    .invoice-grid {
        grid-template-columns: 1fr; /* Faturalar tek sütun */
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Selection Cards */
.selection-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

.selection-card {
    transition: all 0.3s ease;
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .selection-cards {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .selection-card {
        padding: 25px !important;
    }
    
    .selection-card h2 {
        font-size: 1.3rem !important;
    }
    
    .selection-card p {
        font-size: 0.9rem !important;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .stats {
        grid-template-columns: 1fr !important;
    }
    
    .invoice-grid {
        grid-template-columns: 1fr !important;
    }
    
    .info-section {
        padding: 20px !important;
    }
    
    .step-item h4 {
        font-size: 1rem;
    }
    
    .step-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header-logo img {
        max-height: 40px !important;
    }
    
    .top-bar {
        font-size: 0.8rem;
    }
    
    .selection-card {
        padding: 20px !important;
    }
    
    .selection-card h2 {
        font-size: 1.2rem !important;
    }
}
