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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 220px;
    background: #111;
    border-right: 2px solid #c9a84c;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s;
}

.sidebar-logo {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid #222;
}

.sidebar-logo img {
    height: 70px;
    filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.3));
}

.sidebar-nav {
    flex: 1;
    padding: 15px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-item:hover {
    color: #e0e0e0;
    background: #1a1a1a;
}

.nav-item.active {
    color: #c9a84c;
    border-left-color: #c9a84c;
    background: #1a1a1a;
}

.sidebar-footer {
    border-top: 1px solid #222;
    padding: 10px 0;
}

.sidebar-user {
    padding: 10px 20px;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-logout { color: #dc3545 !important; }
.nav-logout:hover { background: #dc354511 !important; }

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 200;
    background: #111;
    color: #c9a84c;
    border: 1px solid #c9a84c;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: 220px;
    flex: 1;
    min-height: 100vh;
    width: calc(100% - 220px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px;
}

.page-title {
    color: #c9a84c;
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2a2a;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.btn-gold { background: #c9a84c; color: #111; font-weight: 600; }
.btn-gold:hover { background: #b8973e; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-danger { background: #dc3545; color: #fff; }
.btn-danger:hover { background: #c82333; }
.btn-info { background: #444; color: #e0e0e0; }
.btn-info:hover { background: #555; }
.btn-success { background: #28a745; color: #fff; }
.btn-success:hover { background: #218838; }

/* ===== TOP BAR ===== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar h2 {
    color: #c9a84c;
    font-size: 20px;
    font-weight: 400;
}

/* ===== FILTERS ===== */
.filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
}

.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-search {
    flex: 1;
    min-width: 150px;
}

.date-range {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filters select,
.filters input {
    padding: 8px 12px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 14px;
    max-width: 100%;
}

.filters select:focus,
.filters input:focus {
    outline: none;
    border-color: #c9a84c;
}

/* ===== TABLE ===== */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #222;
    border-radius: 8px;
    border: 1px solid #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th {
    background: #1a1a1a;
    color: #c9a84c;
    padding: 12px 10px;
    text-align: left;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

td {
    padding: 10px;
    border-top: 1px solid #2a2a2a;
    font-size: 13px;
}

tr:hover { background: #2a2a2a; }

.actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

/* ===== BADGES ===== */
.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none;
}

.badge-bekliyor { background: #ffc10733; color: #ffc107; }
.badge-onaylandi { background: #28a74533; color: #28a745; }
.badge-tamamlandi { background: #28a74533; color: #28a745; }
.badge-iptal { background: #dc354533; color: #dc3545; }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    padding: 15px 0;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #222;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.page-link:hover { background: #333; border-color: #c9a84c; color: #c9a84c; }
.page-link.active { background: #c9a84c; border-color: #c9a84c; color: #111; font-weight: 600; }

.page-info {
    color: #888;
    font-size: 13px;
    margin-left: 10px;
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.active { display: flex; }

.modal {
    background: #222;
    border: 1px solid #c9a84c;
    border-radius: 8px;
    padding: 25px;
    width: 100%;
    max-width: 500px;
    margin: auto;
}

.modal h3 {
    color: #c9a84c;
    margin-bottom: 20px;
    font-weight: 400;
    font-size: 18px;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 15px; }

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #999;
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 14px;
}

.form-group textarea { height: 70px; resize: vertical; }

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

.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ===== STATS ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.stat-card .number {
    font-size: 24px;
    color: #c9a84c;
    font-weight: 700;
}

.stat-card .label {
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 40px 20px; color: #666; }
.empty-state p { font-size: 16px; margin-bottom: 15px; }

/* ===== ALERTS ===== */
.alert { padding: 12px 20px; border-radius: 4px; margin-bottom: 15px; font-size: 14px; }
.alert-success { background: #28a74522; color: #28a745; border: 1px solid #28a74544; }
.alert-danger { background: #dc354522; color: #dc3545; border: 1px solid #dc354544; }

/* ===== LOGIN ===== */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background: #1a1a1a;
    padding: 20px;
}

.login-box {
    background: #222;
    border: 1px solid #c9a84c;
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.login-logo {
    height: 80px;
    filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.3));
    margin-bottom: 15px;
}

.login-box h2 {
    color: #c9a84c;
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 25px;
}

.login-box .form-group { text-align: left; }

/* ===== DASHBOARD ===== */
.dash-header { margin-bottom: 20px; }
.dash-header .page-title { margin-bottom: 15px; }

.dash-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px;
}

.dash-quick-filters {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.dash-filter-btn {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #888;
    text-decoration: none;
    background: #1a1a1a;
    border: 1px solid #333;
    transition: all 0.2s;
    white-space: nowrap;
}

.dash-filter-btn:hover { color: #c9a84c; border-color: #c9a84c; }
.dash-filter-btn.active { background: #c9a84c; color: #111; border-color: #c9a84c; font-weight: 600; }

.dash-date-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dash-date-filter input {
    padding: 6px 10px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 13px;
    max-width: 140px;
}

.dash-date-filter input:focus { outline: none; border-color: #c9a84c; }

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.dash-section {
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.dash-section-title {
    color: #c9a84c;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a2a;
}

.dash-list { display: flex; flex-direction: column; }

.dash-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
}

.dash-list-item:last-child { border-bottom: none; }

.dash-list-time {
    color: #c9a84c;
    font-size: 13px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    line-height: 1.3;
}

.dash-list-info { flex: 1; min-width: 0; }
.dash-list-name { font-size: 13px; color: #e0e0e0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-list-detail { font-size: 11px; color: #888; margin-top: 2px; }

.dash-bars { display: flex; flex-direction: column; gap: 8px; }

.dash-bar-row { display: flex; align-items: center; gap: 8px; }
.dash-bar-label { font-size: 12px; color: #888; min-width: 80px; }
.dash-bar-track { flex: 1; height: 18px; background: #1a1a1a; border-radius: 10px; overflow: hidden; }
.dash-bar-fill { height: 100%; border-radius: 10px; transition: width 0.5s ease; min-width: 2px; }
.dash-bar-val { font-size: 13px; color: #e0e0e0; font-weight: 600; min-width: 25px; text-align: right; }

/* ===== ONAM ===== */
.onam-cell { display: flex; align-items: center; gap: 4px; }

.share-buttons { display: flex; gap: 4px; }

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s;
}

.share-wp { color: #25D366; border-color: #25D36644; }
.share-wp:hover { background: #25D36622; border-color: #25D366; }
.share-ig { color: #E1306C; border-color: #E1306C44; }
.share-ig:hover { background: #E1306C22; border-color: #E1306C; }
.share-copy { color: #888; border-color: #333; }
.share-copy:hover { color: #c9a84c; border-color: #c9a84c; }

/* ===== MUSTERI SEARCH ===== */
.musteri-search-wrap { position: relative; }

.musteri-dropdown {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #1a1a1a;
    border: 1px solid #c9a84c;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
}

.musteri-dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #2a2a2a;
    transition: background 0.15s;
}

.musteri-dropdown-item:hover { background: #2a2a2a; }
.musteri-dropdown-item.disabled { color: #666; cursor: default; }
.musteri-dropdown-item.disabled:hover { background: transparent; }

.musteri-bilgi {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.musteri-bilgi-item {
    display: flex;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    flex-wrap: wrap;
}

.bilgi-label { color: #888; min-width: 70px; }
.bilgi-value { color: #c9a84c; word-break: break-all; }

/* ===== BILDIRIM ===== */
.bildirim-izin {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto;
    background: #222;
    border: 1px solid #c9a84c;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    font-size: 13px;
    color: #e0e0e0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    max-width: 400px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-toggle { display: block; }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .container {
        padding: 12px;
        padding-top: 50px;
    }

    .page-title { font-size: 18px; }

    .form-row { flex-direction: column; gap: 0; }
    .top-bar { flex-direction: column; align-items: stretch; }
    .top-bar h2 { font-size: 17px; }

    table { min-width: 500px; }
    td, th { padding: 8px 6px; font-size: 11px; }

    .filter-row { flex-direction: column; }
    .filter-search { min-width: 100%; }
    .date-range { flex-wrap: wrap; width: 100%; }
    .date-range input { flex: 1; min-width: 0; }

    .stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-card { padding: 12px 8px; }
    .stat-card .number { font-size: 20px; }
    .stat-card .label { font-size: 10px; }

    .dash-grid { grid-template-columns: 1fr; }
    .dash-quick-filters { gap: 4px; }
    .dash-filter-btn { padding: 5px 9px; font-size: 11px; }
    .dash-date-filter input { max-width: 120px; }

    .modal { padding: 20px; margin: 10px; }

    .actions { gap: 3px; }
    .btn-sm { padding: 4px 8px; font-size: 11px; }

    .bildirim-izin {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
        flex-direction: column;
        text-align: center;
    }

    .bildirim-izin span { width: 100%; }

    .login-box { padding: 25px 20px; }
    .login-logo { height: 60px; }
}

@media (max-width: 400px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .stat-card .number { font-size: 18px; }
    table { min-width: 450px; }
    .container { padding: 8px; padding-top: 48px; }
}
