/* Genel Stiller */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fe;
    overflow-x: hidden;
    padding-top: 65px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Üst Çubuk */
.top-bar {
    background: linear-gradient(to right, #ffffff, #224abe);
    color: white;
    height: 50px;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.top-bar .container-fluid {
    padding-top: 0;
    height: 100%;
}

.top-bar .row {
    height: 100%;
}

/* Menü Toggle Butonu */
#menu-toggle {
    padding: 8px !important;
    margin-left: -8px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

#menu-toggle:focus {
    outline: none;
    box-shadow: none;
}

/* Ana Düzen */
#wrapper {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 65px);
}

/* Kenar Çubuğu */
.sidebar {
    width: 225px;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    height: calc(100vh - 65px);
    position: fixed;
    top: 65px;
    left: 0;
    transition: all 0.3s ease-in-out;
    z-index: 1020;
    padding-top: 1rem;
    overflow-y: auto;
}

/* Ana İçerik */
.main-content {
    flex: 1;
    margin-left: 225px;
    transition: all 0.3s ease-in-out;
}

.content-area {
    padding: 1.5rem;
    width: 100%;
}

/* Menü Gizleme/Gösterme */
body.sidebar-toggled .sidebar {
    transform: translateX(-225px);
}

body.sidebar-toggled .main-content {
    margin-left: 0;
}

/* Menü Öğeleri */
.list-group-item {
    border: none;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 7px !important;
    color: #5a6a85;
    transition: all 0.3s ease;
}

.list-group-item:hover, 
.list-group-item.active {
    background: linear-gradient(to right, #4e73df, #224abe);
    color: white;
    box-shadow: 0 4px 10px rgba(78,115,223,0.3);
}

.list-group-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Kartlar */
.card {
    border: none;
    border-radius: 10px;
    margin-bottom: 1rem !important;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    padding: 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Grafikler */
.chart-area {
    position: relative;
    height: 400px;
    margin: 0 auto;
    padding: 1rem;
}

/* Tablolar */
.table-responsive {
    margin: 0;
    padding: 1rem;
    border-radius: 0.35rem;
}

.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fc;
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #5a6a85;
}

/* DataTables Özelleştirmeleri */
.dataTables_wrapper {
    padding: 1rem 0;
}

.dataTables_length select {
    min-width: 80px !important;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
    appearance: none;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%235a5c69' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") right 0.75rem center/8px 10px no-repeat;
}

.dataTables_filter input {
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6e707e;
    background-color: #fff;
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    width: 250px !important;
    margin-left: 0.5rem;
}

.dataTables_filter input:focus {
    border-color: #bac8f3;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.dataTables_info {
    font-size: 0.875rem;
    color: #858796;
    padding-top: 1rem;
}

.dataTables_paginate {
    padding-top: 1rem;
}

.paginate_button {
    padding: 0.375rem 0.75rem;
    margin-left: 3px;
    line-height: 1.5;
    color: #4e73df;
    background-color: #fff;
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
}

.paginate_button:hover {
    color: #fff;
    background-color: #4e73df;
    border-color: #4e73df;
    cursor: pointer;
}

.paginate_button.current {
    color: #fff;
    background-color: #4e73df;
    border-color: #4e73df;
}

/* Formlar */
.form-control {
    border-radius: 7px;
    /*padding: 0.6rem 1rem;*/
    padding: 0 0.6rem;
    border: 1px solid #e9ecef;
}

.form-control-sm {
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    min-width: 180px;
}

.custom-select {
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%235a5c69' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") right 0.75rem center/8px 10px no-repeat;
    padding-right: 1.75rem;
}

.form-control:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78,115,223,0.1);
}

/* Butonlar */
.btn {
    border-radius: 7px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(to right, #4e73df, #224abe);
    border: none;
    box-shadow: 0 4px 10px rgba(78,115,223,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(78,115,223,0.4);
}

/* Kullanıcı Bilgileri */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rozetler */
.badge {
    padding: 0.5em 1em;
    border-radius: 30px;
    font-weight: 500;
}

.badge-primary {
    background: rgba(78,115,223,0.1);
    color: #4e73df;
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 1rem 0;
    background-color: #f8f9fc;
    border-top: 1px solid #e3e6f0;
}

/* Responsive Tasarım */
@media (max-width: 767.98px) {
    .sidebar {
        transform: translateX(-225px);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    body.sidebar-toggled .sidebar {
        transform: translateX(0);
    }

    body.sidebar-toggled .main-content {
        margin-left: 225px;
    }

    .card-header {
        flex-direction: column;
        align-items: stretch !important;
    }

    .card-header select.form-control {
        width: 100%;
        margin: 1rem 0 0 0;
    }

    #earningsTable_wrapper .dataTables_length,
    #earningsTable_wrapper .dataTables_filter {
        text-align: left;
        margin-bottom: 1rem;
    }
    
    #earningsTable_wrapper .dataTables_filter input {
        width: 100% !important;
        margin: 0.5rem 0 0 0;
    }

    #earningsTable_wrapper .dataTables_paginate {
        text-align: center;
        margin-top: 1rem;
    }

    .paginate_button {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Özel Stiller */
.text-right {
    text-align: right !important;
    font-family: "Roboto Mono", monospace;
    font-weight: 500;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: white !important;
}

/* Dönem Seçici Stilleri */
.period-selector .input-group {
    min-width: 200px;
    background: #fff;
    border-radius: 0.35rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.period-selector .input-group-text {
    background-color: #f8f9fc;
    border-color: #e3e6f0;
    color: #4e73df;
    padding: 0.75rem;
}

.period-selector .custom-select {
    border-color: #e3e6f0;
    color: #3a3b45;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem;
    height: auto;
    background-color: #fff;
}

.period-selector .custom-select:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.period-selector .custom-select option {
    padding: 12px;
    font-weight: 500;
    color: #3a3b45;
}

.period-selector .custom-select option:checked {
    background-color: #4e73df;
    color: #fff;
}

@media (max-width: 576px) {
    .period-selector .input-group {
        min-width: 180px;
    }
    
    .period-selector .custom-select {
        font-size: 0.95rem;
        padding: 0.6rem;
    }
} 