/* ==========================================================================
   1. GENEL SIFIRLAMA VE TEMEL STİLLER (RESET & BASE)
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #f4f6f9;
    color: #333333;
    padding-bottom: 75px;
    font-size: 15px;
    line-height: 1.4;
}

/* ==========================================================================
   2. ÜST BİLGİ (HEADER)
   ========================================================================== */
#topHeader {
    /* Mor tondan biraz daha koyu/gece moruna yumuşak geçiş */
    background: radial-gradient(ellipse at center, #6b11da 0%, #43058D 55%, #1a013a 100%);
    
    color: #ffffff;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    
    /* Modern cam dokusu ve belirginlik için */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    /* Derinlik katan çift katmanlı gölge ve ince alt çizgi */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    
    margin-bottom: 15px;
}

#topHeader h1 {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin: 0;
}

.top-header-icon-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.top-header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.top-header-icon-btn:active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0.96);
}

.top-header-icon-btn img.icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}
/*ÜST ORTA TEXT*/
.top-header-username {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(0, 0, 0, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

/* ==========================================================================
   3. KAPSAYICI VE KART DÜZENLERİ (CONTAINER & CARDS)
   ========================================================================== */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 12px;
}

.card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card h2 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #0f172a;
}

.card h3 {
    font-size: 15px;
    margin-bottom: 10px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}

.header-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* ==========================================================================
   4. ÖZET PANOSU VE İSTATİSTİKLER (DASHBOARD SUMMARY)
   ========================================================================== */
.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.summary-box {
    background-color: #ffffff;
    padding: 10px 6px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.summary-box small {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.summary-box strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
}

#toplamAlacak { color: #d9534f; }
#toplamBorc { color: #5cb85c; }

/* ==========================================================================
   5. ARAMA KUTUSU VE FORM ELEMANLARI (FORMS & INPUTS)
   ========================================================================== */

   
.search-box {margin-bottom: 15px;}

.search-box input {background: #fff;}

input,
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 400;
    color: #1c1c1e;
    background: #f2f2f7;
    border: 1px solid #d1d1d6;
    border-radius: 10px;
    padding: 12px 14px;
    min-height: 44px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s ease, background-color .15s ease;
}

input:focus,
select:focus,
textarea:focus {
    background: #fff;
    border-color: #007aff;
}

input::placeholder,
textarea::placeholder {
    color: #8e8e93;
    opacity: 1;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

input:disabled,
select:disabled,
textarea:disabled {
    color: #8e8e93;
    background: #e5e5ea;
    opacity: .7;
}


.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    outline: none;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: #2563eb;
}

/* ==========================================================================
   6. MÜŞTERİ LİSTESİ VE CARİ ÖĞELER (LIST ITEMS)
   ========================================================================== */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.musteri-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.musteri-item:active {
    background-color: #f1f5f9;
}

.bakiye-borc {
    color: #d9534f;
    font-weight: 700;
    font-size: 14px;
}

.bakiye-alacak {
    color: #5cb85c;
    font-weight: 700;
    font-size: 14px;
}

.bakiye-title {
    font-size: 14px;
    font-weight: bold;
    color: #1e293b;
    margin-top: 4px;
}

/* Hatırlatma Liste Elemanları */
.hatirlatma-item {
    background: #ffffff;
    border-left: 4px solid #3b82f6;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   7. BUTONLAR VE AKSİYON ELEMANLARI (BUTTONS)
   ========================================================================== */
.button-group {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.button-group button {
    flex: 1;
}

button {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

button:active {
    opacity: 0.8;
}

.btn-primary { background-color: #2563eb; color: #ffffff; }
.btn-success { background-color: #16a34a; color: #ffffff; }
.btn-secondary { background-color: #64748b; color: #ffffff; }
.btn-danger { background-color: #dc2626; color: #ffffff; }

.action-buttons-top button {
    background: none;
    border: none;
    font-size: 18px;
    padding: 4px 8px;
    cursor: pointer;
}

.btn-icon-del {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

/* ==========================================================================
   8. SABİT ALT NAVİGASYON BARLARI (BOTTOM BARS)
   ========================================================================== */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #fff;
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.bottom-bar button {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: #444;
    font-size: 11px;
    font-weight: 500;
    padding: 0;
    border-radius: 0;
}

.bottom-bar button .icon {
    position: relative;
}

.bottom-bar button:active {
    background-color: #fff;
    color: #2563eb;
}

.bottom-bar button img{
	width:30px;height:30px;
    filter: brightness(0) invert(0.4);
}

/* ==========================================================================
   9. MODAL VE OVERLAY (LOGIN OVERLAY)
   ========================================================================== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 360px;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.login-card h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #0f172a;
}

.avatar-circle {
    min-width: 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
    user-select: none;
}