/* === MOBİL MENÜ === */
.cp-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: #696cff;
    margin-right: 12px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .cp-menu-toggle { display: inline-flex; align-items: center; }
    .cp-side {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transition: left .25s;
        height: 100vh;
    }
    .cp-side.cp-side-open {
        left: 0;
        box-shadow: 2px 0 16px rgba(0,0,0,.18);
    }
    .cp-shell { position: relative; }
}
/* ── AlfaPOS CP — Müşteri Paneli ─────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.cp {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #1f2733;
    background: #f5f5f9;
    -webkit-font-smoothing: antialiased;
}
a { color: #696cff; text-decoration: none; }
a:hover { color: #4d51d8; }
code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .85em;
    background: #f0f0f5;
    padding: 2px 6px;
    border-radius: 4px;
    color: #384354;
}

/* === AUTH (login) === */
.cp-auth-body {
    background: linear-gradient(135deg, #696cff 0%, #8c92ff 50%, #b3b6ff 100%);
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 16px;
}
.cp-auth-wrap { width: 100%; max-width: 420px; }
.cp-auth-card {
    background: #fff;
    border-radius: 14px;
    padding: 36px 32px 28px;
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
.cp-auth-brand { text-align: center; margin-bottom: 24px; }
.cp-logo {
    display: inline-flex; width: 48px; height: 48px;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, #696cff, #8c92ff);
    color: #fff; border-radius: 12px; font-size: 22px;
}
.cp-logo-lg { width: 64px; height: 64px; font-size: 30px; margin-bottom: 12px; }
.cp-auth-name { font-size: 20px; font-weight: 700; color: #696cff; margin-top: 4px; }
.cp-auth-sub  { font-size: 12px; color: #8e95a8; }
.cp-auth-title { font-size: 22px; margin: 16px 0 4px; color: #1f2733; }
.cp-auth-text  { color: #697a8d; font-size: 13px; margin: 0 0 22px; }
.cp-auth-foot  { text-align: center; margin-top: 22px; color: #8e95a8; }

/* === SHELL === */
.cp-shell {
    display: flex; min-height: 100vh;
}
.cp-side {
    width: 240px;
    background: #2c2f4a;
    color: #c8cce4;
    flex-shrink: 0;
    display: flex; flex-direction: column;
}
.cp-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 18px 18px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.cp-brand-name { color: #fff; font-weight: 700; font-size: 15px; }
.cp-brand-sub  { color: #8d92b0; font-size: 11px; margin-top: 2px; }

.cp-nav { padding: 12px 8px; flex: 1; }
.cp-nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 14px; margin: 2px 0;
    color: #a3a8c4; border-radius: 6px;
    font-size: 14px; transition: background .15s, color .15s;
}
.cp-nav-item i { font-size: 18px; width: 22px; text-align: center; }
.cp-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.cp-nav-item.active {
    background: linear-gradient(90deg, #696cff, #8c92ff);
    color: #fff; box-shadow: 0 2px 12px rgba(105,108,255,.3);
}
.cp-nav-logout { margin-top: 12px; border-top: 1px solid rgba(255,255,255,.06); padding-top: 14px; }

.cp-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cp-topbar {
    background: #fff; padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid #eaeaf0;
}
.cp-topbar-title { font-size: 16px; font-weight: 600; color: #1f2733; }
.cp-topbar-user { display: flex; align-items: center; gap: 10px; }
.cp-user-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, #696cff, #8c92ff);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 600;
}
.cp-user-name { font-size: 13px; font-weight: 600; }
.cp-user-mail { font-size: 11px; color: #8e95a8; }

.cp-content { padding: 22px 24px; flex: 1; }
.cp-footer { padding: 14px 24px; color: #8e95a8; font-size: 12px; border-top: 1px solid #eaeaf0; background: #fff; }

/* === GREETING === */
.cp-greeting { margin-bottom: 18px; }
.cp-greeting h1 { font-size: 22px; margin: 0 0 4px; color: #1f2733; }
.cp-greeting p  { margin: 0; color: #697a8d; }

/* === DEALER CARD === */
.cp-dealer-card {
    display: flex; align-items: center; gap: 16px;
    background: linear-gradient(135deg, #696cff 0%, #8c92ff 100%);
    color: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(105,108,255,.25);
}
.cp-dealer-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; flex-shrink: 0;
}
.cp-dealer-body { flex: 1; min-width: 0; }
.cp-dealer-label { font-size: 11px; text-transform: uppercase; opacity: .85; letter-spacing: .5px; margin-bottom: 2px; }
.cp-dealer-name  { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.cp-dealer-meta  { display: flex; gap: 18px; flex-wrap: wrap; }
.cp-dealer-link  { color: #fff; opacity: .92; font-size: 13px; }
.cp-dealer-link:hover { color: #fff; opacity: 1; text-decoration: underline; }
.cp-dealer-link i { margin-right: 4px; }
.cp-dealer-mini  { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #eaeaf0; }
.cp-dealer-mini-head {
    font-size: 11px; text-transform: uppercase; color: #696cff;
    font-weight: 700; letter-spacing: .5px; margin-bottom: 8px;
}
.cp-dealer-mini-head i { margin-right: 4px; }
@media (max-width: 480px) {
    .cp-dealer-card { flex-direction: column; text-align: center; }
    .cp-dealer-meta { justify-content: center; }
}

/* === STATS === */
.cp-stats {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    margin-bottom: 18px;
}
.cp-stat {
    background: #fff; border-radius: 10px; padding: 16px;
    display: flex; align-items: center; gap: 12px;
    border: 1px solid #eaeaf0;
    transition: transform .15s, box-shadow .15s;
}
.cp-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.cp-stat-icon {
    width: 44px; height: 44px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff;
    background: linear-gradient(135deg, #696cff, #8c92ff);
}
.cp-stat[data-color="success"] .cp-stat-icon { background: linear-gradient(135deg, #28c76f, #4cd585); }
.cp-stat[data-color="info"]    .cp-stat-icon { background: linear-gradient(135deg, #00cfe8, #50dde8); }
.cp-stat[data-color="warning"] .cp-stat-icon { background: linear-gradient(135deg, #ff9f43, #ffb866); }
.cp-stat[data-color="danger"]  .cp-stat-icon { background: linear-gradient(135deg, #ea5455, #f08585); }
.cp-stat[data-color="dark"]    .cp-stat-icon { background: linear-gradient(135deg, #4b4b4b, #6e6e6e); }
.cp-stat[data-color="purple"]  .cp-stat-icon { background: linear-gradient(135deg, #7367f0, #9d92f5); }
.cp-stat-num { font-size: 22px; font-weight: 700; color: #1f2733; }
.cp-stat-label { font-size: 12px; color: #697a8d; }

/* === CARDS === */
.cp-row { display: grid; gap: 16px; }
.cp-row-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 768px) { .cp-row-2 { grid-template-columns: 1fr; } }
.cp-card {
    background: #fff; border-radius: 10px;
    border: 1px solid #eaeaf0; margin-bottom: 16px; overflow: hidden;
}
.cp-card-head {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px; border-bottom: 1px solid #eaeaf0;
    background: #fafafe;
}
.cp-card-head i { color: #696cff; font-size: 18px; }
.cp-card-head h3 { margin: 0; font-size: 15px; flex: 1; }
.cp-card-body { padding: 16px; }
.cp-card-body.cp-table-wrap { padding: 0; }

/* === TABLE === */
.cp-table { width: 100%; border-collapse: collapse; }
.cp-table th {
    text-align: left; font-size: 11px; text-transform: uppercase;
    color: #8e95a8; font-weight: 600;
    padding: 10px 14px; border-bottom: 1px solid #eaeaf0;
    background: #fafafe;
}
.cp-table td {
    padding: 11px 14px; border-bottom: 1px solid #f0f0f5;
    font-size: 13.5px;
}
.cp-table tr:hover td { background: #fafafe; }
.cp-table .muted { color: #8e95a8; }

/* === BADGES === */
.badge {
    display: inline-block; padding: 3px 9px; border-radius: 11px;
    font-size: 11px; font-weight: 600; line-height: 1;
}
.badge-success   { background: #d4f4e2; color: #207a45; }
.badge-warning   { background: #fff0d6; color: #b67800; }
.badge-info      { background: #d4f1f8; color: #0a78a0; }
.badge-danger    { background: #ffd9d9; color: #b63232; }
.badge-secondary { background: #ececf3; color: #555; }

/* === FORMS === */
.cp-form-group { margin-bottom: 14px; }
.cp-label { display: block; font-size: 12px; color: #697a8d; margin-bottom: 6px; font-weight: 600; }
.cp-input {
    width: 100%; padding: 10px 12px;
    border: 1px solid #d8dae5; border-radius: 6px;
    font-size: 14px; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.cp-input:focus {
    border-color: #696cff;
    box-shadow: 0 0 0 3px rgba(105,108,255,.15);
}

.cp-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 16px; border-radius: 6px;
    font-size: 14px; font-weight: 600;
    border: 1px solid transparent; cursor: pointer;
    transition: background .15s, transform .1s;
}
.cp-btn-primary {
    background: linear-gradient(135deg, #696cff, #8c92ff);
    color: #fff;
}
.cp-btn-primary:hover { transform: translateY(-1px); }
.cp-btn-block { width: 100%; justify-content: center; padding: 11px; font-size: 15px; }
.cp-btn-sm    { padding: 6px 12px; font-size: 12px; gap: 5px; }
.text-right   { text-align: right; }
.cp-info-block {
    padding: 9px 12px; background: #f5f5f9;
    border-radius: 6px; font-size: 12.5px;
    margin-bottom: 14px;
}
.cp-info-block code { background: #fff; }

/* === ALERTS === */
.cp-alert {
    padding: 11px 14px; border-radius: 6px;
    font-size: 13px; margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}
.cp-alert-danger  { background: #ffd9d9; color: #842029; }
.cp-alert-success { background: #d1e7dd; color: #0f5132; }
.cp-alert-warning { background: #fff3cd; color: #664d03; }

/* === EMPTY === */
.cp-empty { text-align: center; padding: 40px 20px; color: #8e95a8; }
.cp-empty h3 { margin: 12px 0 6px; color: #1f2733; }
.cp-empty p  { margin: 0 0 16px; }

/* === INFO BLOCK (profil) === */
.cp-info {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid #f0f0f5;
}
.cp-info:last-of-type { border-bottom: none; }
.cp-info-label { color: #8e95a8; font-size: 13px; }
.cp-info-value { font-weight: 600; }
.cp-muted { color: #8e95a8; }
.small { font-size: 12px; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    /* .cp-side { display: none; }  Mobilde menü gizlenmesin */
    .cp-content { padding: 16px; }
    .cp-stats { grid-template-columns: 1fr 1fr; }
}
