body {
    background-color: #121212;
    color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: 'Roboto', 'Segoe UI', Tahoma, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ===== GİRİŞ EKRANI ===== */
.login-screen {
    display: flex; justify-content: center; align-items: center;
    width: 100%; height: 100%; background: radial-gradient(circle at center, #1f1f1f 0%, #0a0a0a 100%);
}
.login-container { text-align: center; max-width: 400px; width: 90%; }
.login-logo { margin-bottom: 40px; }
.login-logo-img { height: 45px; }
.login-tosya { font-family: 'Caveat', cursive; font-size: 32px; color: #fff; opacity: 0.9; margin-left: -5px; }

.login-form { background: rgba(255,255,255,0.03); padding: 30px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }
.login-title { font-size: 16px; color: #888; font-weight: 500; margin-bottom: 25px; letter-spacing: 1px; }

.login-user-btn {
    width: 100%; display: flex; align-items: center; gap: 15px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 22px; color: #fff; cursor: pointer;
    transition: all 0.2s ease; margin-bottom: 12px;
}
.login-user-btn:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.login-user-btn .material-icons-outlined { font-size: 32px; color: #bbb; }
.login-user-info { flex: 1; text-align: left; display: flex; flex-direction: column; }
.login-user-name { font-size: 19px; font-weight: 700; }
.login-user-role { font-size: 14px; color: #aaa; }
.login-arrow { font-size: 24px !important; color: #666 !important; }

.login-password-area {
    display: none; flex-direction: column; gap: 10px; margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}
.login-password-area.show { display: flex; }
.login-password-area input {
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; padding: 12px 16px; border-radius: 8px; font-size: 14px; outline: none;
}
.login-password-area input:focus { border-color: #aaa; }
.login-submit-btn {
    background: #fff; color: #000; padding: 12px; border: none; border-radius: 8px;
    font-weight: 600; cursor: pointer; transition: 0.2s;
}
.login-submit-btn:hover { background: #ddd; }
.login-error { color: #ff6b6b; font-size: 13px; min-height: 18px; margin: 0; }

/* ===== ANA UYGULAMA (APP WRAPPER) ===== */
.app-wrapper {
    width: 100%; max-width: 1400px; height: 100vh;
    display: flex; flex-direction: column; background-color: #121212;
}

/* HEADER */
.header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 30px; background: rgba(25, 25, 25, 0.95);
    border-bottom: 1px solid #333; height: 70px;
}
.header-left { flex: 1; display: flex; align-items: center; }
.logo-area { display: flex; align-items: center; gap: 12px; }
.header-logo-img { height: 35px; }
.header-tosya { font-family: 'Caveat', cursive; font-size: 28px; color: #fff; opacity: 0.9; margin-left: -5px; }

.header-center { flex: 1; text-align: center; }
.header-subtitle { font-size: 12px; letter-spacing: 2px; color: #777; text-transform: uppercase; font-weight: 500; }

.header-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 20px; }

/* Bildirim Zili */
.header-notif {
    position: relative; cursor: pointer; display: flex; align-items: center;
    padding: 8px; border-radius: 50%; transition: 0.2s;
}
.header-notif:hover { background: rgba(255,255,255,0.1); }
.header-notif .material-icons-outlined { font-size: 26px; color: #fff; }
.notif-badge {
    position: absolute; top: 2px; right: 2px; background: #ff3b30; color: #fff;
    font-size: 10px; font-weight: 700; width: 16px; height: 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 2px solid #191919;
}
.notif-dropdown {
    position: absolute; top: 50px; right: 0; width: 300px; background: #222;
    border: 1px solid #444; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 100; display: flex; flex-direction: column; overflow: hidden;
}
.notif-dropdown h4 { margin: 0; padding: 15px; background: #1a1a1a; border-bottom: 1px solid #333; font-size: 14px; }
#notifList { max-height: 300px; overflow-y: auto; }
.notif-item { padding: 12px 15px; border-bottom: 1px solid #333; font-size: 13px; line-height: 1.4; color: #ddd; }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: rgba(100,180,255,0.1); border-left: 3px solid #6bb8ff; }
.notif-date { font-size: 11px; color: #888; display: block; margin-top: 4px; }

.header-user { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.05); padding: 6px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); }
.header-user .material-icons-outlined { font-size: 24px; color: #aaa; }
.header-user-text { display: flex; flex-direction: column; }
.header-username { font-size: 13px; font-weight: 700; color: #fff; }
.header-userrole { font-size: 10px; color: #888; }
.header-info { text-align: right; font-size: 12px; color: #bbb; display: flex; flex-direction: column; }
.header-time { font-weight: 700; font-size: 16px; color: #fff; }
.logout-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.2);
    color: #ccc; border-radius: 8px; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s;
}
.logout-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ===== MAIN CONTENT (MENÜ) ===== */
.main-content {
    flex: 1; display: flex; justify-content: center; align-items: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #121212 100%);
    padding: 20px;
}

/* Kritik Stok Uyarı Bandı */
.low-stock-alert {
    width: 100%; background: rgba(255, 59, 48, 0.15); border: 1px solid rgba(255, 59, 48, 0.4);
    color: #ff6b6b; padding: 12px 20px; border-radius: 12px; display: flex; align-items: center;
    gap: 12px; font-weight: 600; font-size: 15px; cursor: pointer; transition: 0.2s;
}
.low-stock-alert:hover { background: rgba(255, 59, 48, 0.25); }
.low-stock-alert .material-icons-outlined { font-size: 24px; }
.low-stock-row td { background: rgba(255, 59, 48, 0.1) !important; color: #ff8888; font-weight: bold; }

.buttons-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.menu-btn {
    position: relative; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 15px;
    width: 100%; aspect-ratio: 1;
    border: none; border-radius: 18px; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
    padding: 30px; font-family: 'Roboto', sans-serif;
}
.menu-btn:hover { transform: translateY(-5px) scale(1.02); }
.menu-btn:active { transform: translateY(-2px) scale(0.98); }

.btn-black {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a); color: #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.07);
}
.btn-black:hover { box-shadow: 0 14px 40px rgba(0,0,0,0.6); }
.btn-black .btn-icon-wrapper { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); }
.btn-black .btn-description { color: rgba(255,255,255,0.4); }

.btn-white {
    background: linear-gradient(145deg, #fff, #e6e6e6); color: #111;
    box-shadow: 0 8px 28px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.05);
}
.btn-white:hover { box-shadow: 0 14px 40px rgba(0,0,0,0.3); }
.btn-white .btn-icon-wrapper { background: rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.08); }
.btn-white .btn-description { color: rgba(0,0,0,0.4); }

.btn-icon-wrapper {
    display: flex; align-items: center; justify-content: center;
    width: 65px; height: 65px; border-radius: 14px; transition: all 0.3s;
}
.btn-icon { font-size: 36px; }
.btn-label { font-size: 20px; font-weight: 700; letter-spacing: 0.3px; }
.btn-description { font-size: 13px; }

/* ===== SAYFA EKRANLARI ===== */
.page-screen { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.page-top-bar {
    display: flex; align-items: center; gap: 16px; justify-content: space-between;
    padding: 14px 28px; background: rgba(0,0,0,0.2);
    border-bottom: 1px solid #444; flex-shrink: 0;
}
.back-btn {
    display: flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
    color: #fff; padding: 7px 14px; border-radius: 8px;
    font-family: 'Roboto', sans-serif; font-size: 13px; font-weight: 500;
    cursor: pointer; transition: all 0.2s;
}
.back-btn:hover { background: rgba(255,255,255,0.14); }
.back-btn .material-icons-outlined { font-size: 18px; }

.page-title {
    font-size: 18px; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}
.page-title .material-icons-outlined { font-size: 22px; color: #888; }
.page-center-action { display: flex; flex: 1; justify-content: center; padding: 0 20px; }
.page-actions { display: flex; gap: 10px; align-items: center; }

.action-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 8px 16px; border: none; border-radius: 8px;
    font-family: 'Roboto', sans-serif; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.action-btn .material-icons-outlined { font-size: 18px; }
.btn-add { background: #fff; color: #111; }
.btn-add:hover { background: #e0e0e0; }

.btn-camera {
    background: rgba(100,180,255,0.15); color: #6bb8ff;
    border: 1px solid rgba(100,180,255,0.3);
}
.btn-camera:hover { background: rgba(100,180,255,0.25); }

.big-btn { padding: 12px 20px; font-size: 14px; }
.big-btn .material-icons-outlined { font-size: 22px; }

.filter-input, .customer-input {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    color: #fff; padding: 8px 14px; border-radius: 8px;
    font-family: 'Roboto', sans-serif; font-size: 14px;
}
.filter-input:focus, .customer-input:focus {
    outline: none; border-color: #fff; background: rgba(255,255,255,0.1);
}
.white-input { background: #fff !important; color: #111 !important; border: 1px solid #ddd; font-weight: 500; }
.white-input::placeholder { color: #888; font-weight: 400; }
.white-input:focus { box-shadow: 0 0 0 2px rgba(255,255,255,0.5); }
.wide-input { width: 300px !important; }

.date-navigator {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; color: #111; border-radius: 8px; padding: 4px; gap: 12px;
    font-weight: 600; width: 220px; font-size: 14px; border: 1px solid #ddd;
}
.date-navigator button {
    background: none; border: none; cursor: pointer; display: flex;
    align-items: center; color: #555; padding: 6px; border-radius: 4px; transition: 0.2s;
}
.date-navigator button:hover { background: #eee; color: #000; }

/* ===== CİRO KUTUSU ===== */
.ciro-box {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 1px solid #444; border-radius: 12px; padding: 20px 30px;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.ciro-item { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.ciro-label { font-size: 12px; color: #aaa; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.ciro-value { font-size: 22px; font-weight: 700; color: #fff; }
#ciroValue { font-size: 26px; }

/* ===== TABLOLAR ===== */
.table-container {
    flex: 1; overflow-y: auto; padding: 20px 28px;
    background: rgba(0,0,0,0.1);
}
.data-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    font-family: 'Roboto', sans-serif;
}
.data-table th, .data-table td {
    padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.data-table th {
    background: rgba(255,255,255,0.03); color: #aaa; font-weight: 600; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.5px; position: sticky; top: 0; z-index: 10;
}
.data-table tbody tr { transition: background 0.2s; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.data-table select, .data-table input[type="number"] {
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; padding: 6px 10px; border-radius: 6px; font-family: 'Roboto', sans-serif;
    outline: none; font-size: 13px;
}
.data-table select { cursor: pointer; }
.data-table select option { background-color: #ffffff; color: #000000; }
.data-table input[type="number"]:focus { border-color: #777; }

.table-action-btn {
    background: transparent; border: none; color: #888; cursor: pointer;
    padding: 6px; border-radius: 6px; transition: 0.2s;
}
.table-action-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.table-action-btn.delete:hover { background: rgba(255,100,100,0.15); color: #ff6b6b; }

.fiyat-input-cell { display: flex; align-items: center; gap: 8px; }
.fiyat-input-cell input { width: 90px; }
.fiyat-save-btn {
    background: rgba(100,255,100,0.15); color: #6fcf6f;
    border: 1px solid rgba(100,255,100,0.3); padding: 5px 10px;
    border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer;
}
.fiyat-save-btn:hover { background: rgba(100,255,100,0.25); }
.fiyat-display { font-weight: 600; color: #e0e0e0; }

.empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 60px 20px; color: #666; gap: 15px; height: 100%; min-height: 200px;
}
.empty-state .material-icons-outlined { font-size: 48px; opacity: 0.5; }

/* ===== SATIŞ ÖZET ===== */
.satis-summary {
    background: rgba(15,15,15,0.95); padding: 16px 28px;
    border-top: 1px solid #333; display: flex; justify-content: flex-end;
    align-items: center; gap: 30px; font-family: 'Roboto', sans-serif; flex-shrink: 0;
}
.summary-row { display: flex; align-items: center; gap: 10px; }
.summary-label { color: #888; font-size: 13px; font-weight: 500; }
.summary-value { font-size: 18px; font-weight: 700; color: #ccc; }
.summary-input {
    background: rgba(0,0,0,0.4); border: 1px solid #444; color: #fff;
    padding: 6px 12px; border-radius: 6px; width: 80px; font-size: 14px; text-align: center;
}
.net-value { color: #6fcf6f; font-size: 22px; }

.btn-complete-sale {
    background: #fff; color: #000; padding: 12px 24px; border-radius: 8px; border: none;
    font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px;
    cursor: pointer; transition: 0.2s;
}
.btn-complete-sale:hover { background: #e0e0e0; transform: translateY(-2px); }

/* Kampanya */
.campaign-row { background: rgba(111,207,111,0.08) !important; }
.campaign-badge {
    background: #6fcf6f; color: #000; font-size: 10px; font-weight: 700;
    padding: 3px 6px; border-radius: 4px; margin-left: 8px; vertical-align: middle;
}
.campaign-icon { font-size: 48px; margin-bottom: 10px; animation: bounce 1s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== MODAL ===== */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center;
    z-index: 1000; backdrop-filter: blur(4px);
}
.modal.active { display: flex; animation: fadeIn 0.2s ease; }
.modal-content {
    background: #1e1e1e; padding: 30px; border-radius: 16px;
    width: 90%; max-width: 400px; border: 1px solid #333;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.modal h3 { margin: 0 0 20px 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.form-group { margin-bottom: 15px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; color: #aaa; font-weight: 500; }
.form-group input, .form-group select {
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.15);
    color: #fff; padding: 10px 14px; border-radius: 8px; font-family: 'Roboto', sans-serif;
    outline: none; font-size: 14px;
}
.form-group input:focus, .form-group select:focus { border-color: #666; }
.form-group select option { background-color: #ffffff; color: #000000; }
.modal-actions { display: flex; gap: 12px; margin-top: 25px; }

/* Bildirim */
.notification {
    position: fixed; bottom: 30px; right: 30px; padding: 14px 20px;
    border-radius: 10px; display: flex; align-items: center; gap: 10px;
    font-family: 'Roboto', sans-serif; font-size: 14px; font-weight: 500;
    transform: translateY(100px); opacity: 0; transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 2000; box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.notification.show { transform: translateY(0); opacity: 1; }
.notification.success { background: #2e7d32; color: #fff; border: 1px solid #388e3c; }
.notification.error { background: #c62828; color: #fff; border: 1px solid #d32f2f; }
.notification.warning { background: #f57c00; color: #fff; border: 1px solid #f57c00; }
.notification.info { background: #1565c0; color: #fff; border: 1px solid #0d47a1; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.btn-stok { background: linear-gradient(135deg, #302b63, #24243e); color: #fff; }
.btn-fiyat { background: linear-gradient(135deg, #2c3e50, #3498db); color: #fff; }
.btn-satis-gir { background: linear-gradient(135deg, #b7950b, #f1c40f); color: #000; }
.btn-urun { background: linear-gradient(135deg, #8e44ad, #512e5f); color: #fff; }
.btn-satislar { background: linear-gradient(135deg, #c0392b, #8e44ad); color: #fff; }
.btn-musteri { background: linear-gradient(135deg, #d35400, #a04000); color: #fff; }
.menu-btn { color: white; transition: all 0.3s ease; }
.btn-satis-gir { color: black; }
.menu-btn:hover { filter: brightness(1.2); transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.3); }
