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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Logo Stilleri */
.site-logo {
    height: 50px;
    object-fit: contain;
}

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

.logo-container h1 {
    color: #667eea;
    font-size: 1.5rem;
    margin: 0;
}

.landing-logo {
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Ana Sayfa */
.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero {
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.feature-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

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

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feature-card p {
    opacity: 0.9;
}

/* Giriş/Kayıt Kutusu */
.login-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
}

.login-box h1 {
    text-align: center;
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.required {
    color: #e74c3c;
}

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

/* Butonlar */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-small {
    padding: 6px 15px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Linkler */
.links {
    margin-top: 20px;
    text-align: center;
}

.links a {
    color: #667eea;
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

/* Demo Bilgisi */
.demo-info {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.demo-info h3 {
    margin-bottom: 10px;
    color: #667eea;
}

.demo-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #555;
}

/* Uyarılar */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dashboard & Admin Panel */
.dashboard-container,
.admin-container {
    background: #f5f6fa;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-brand h1 {
    color: #667eea;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: #555;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: #667eea;
    color: white;
}

.user-info {
    font-weight: 600;
    color: #667eea;
}

.btn-logout {
    background: #dc3545;
    color: white;
    padding: 8px 20px;
}

.btn-logout:hover {
    background: #c82333;
    color: white;
}

/* Dashboard Content */
.dashboard-content,
.admin-content {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-content h2 {
    margin-bottom: 30px;
    color: #333;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

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

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: #999;
}

.stat-card.income .stat-value {
    color: #28a745;
}

.stat-card.expense .stat-value {
    color: #dc3545;
}

.stat-card.debt .stat-value {
    color: #ffc107;
}

.stat-card.paid .stat-value {
    color: #007bff;
}

.stat-card.balance .stat-value {
    color: #667eea;
}

/* Tables */
.tables-container {
    display: grid;
    gap: 30px;
}

.table-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.table-section h3 {
    margin-bottom: 20px;
    color: #333;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.data-table thead {
    background: #667eea;
    color: white;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table tbody tr.paid {
    background: #d4edda;
}

.data-table tbody tr.unpaid {
    background: #fff3cd;
}

/* Admin Sections */
.admin-sections {
    display: grid;
    gap: 30px;
}

.section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.section h2 {
    margin-bottom: 20px;
    color: #333;
}

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

/* Add Form */
.add-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.form-row input,
.form-row select {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: #667eea;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.tab-btn:hover {
    background: #667eea;
    color: white;
}

.tab-btn.active {
    background: #667eea;
    color: white;
}

.tab-section {
    display: none;
}

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rapor-btn {
    margin-left: auto;
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.rapor-btn:hover {
    background: #218838;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #333;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons button {
    flex: 1;
}

/* Bulk User Select */
.bulk-user-select {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

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

.bulk-header h3 {
    margin: 0;
    color: #555;
    font-size: 1.1rem;
}

.bulk-header label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #667eea;
    cursor: pointer;
}

.user-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.user-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.user-checkbox-item:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.user-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.user-checkbox-item span {
    flex: 1;
    color: #555;
    font-weight: 500;
}

.user-checkbox-item small {
    color: #999;
    margin-left: 5px;
}

/* Rapor Actions */
.rapor-actions {
    margin-top: 15px;
}

/* Table Footer */
.data-table tfoot {
    background: #667eea;
    color: white;
    font-weight: bold;
}

.data-table tfoot td {
    padding: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tab-nav {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
    }

    .rapor-btn {
        margin-left: 0;
        margin-top: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .user-checkboxes {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 10px;
    }
}

/* Site İstatistikleri */
.site-stats {
    margin: 30px 0;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.site-stats h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.4rem;
}

.site-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.site-stat-card {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.site-stat-card.collections {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
}

.site-stat-card.expenses {
    background: linear-gradient(135deg, #eb3349, #f45c43);
    color: white;
}

.site-stat-card.cash-positive {
    background: linear-gradient(135deg, #56ccf2, #2f80ed);
    color: white;
}

.site-stat-card.cash-negative {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.site-stat-card h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    opacity: 0.9;
}

.site-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.site-stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 5px;
    display: block;
}

.expense-amount {
    color: #dc3545;
    font-weight: 600;
}

@media (max-width: 768px) {
    .site-stats-grid {
        grid-template-columns: 1fr;
    }

    .site-stat-value {
        font-size: 1.5rem;
    }
}