/* style.css - TOYA Ana Stil Dosyası */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #f0f2f5; font-family: 'Segoe UI', sans-serif; }

/* ========== NAVBAR ========== */
.navbar-crm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.6rem 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1000;
}
.navbar-brand { color: white !important; font-weight: 700; font-size: 1.3rem; text-decoration: none; }
.navbar-brand small { font-size: 0.65rem; opacity: 0.8; }

/* ========== SIDEBAR ========== */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 260px;
    background: #2c3e50;
    color: white;
    z-index: 999;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.sidebar.show { transform: translateX(0); }
@media (min-width: 768px) {
    .sidebar { transform: translateX(0); }
    .toggle-sidebar { display: none; }
}
@media (max-width: 767px) {
    .toggle-sidebar { display: block; }
}

/* ========== SIDEBAR MENÜ ========== */
.sidebar-menu { list-style: none; padding: 0; margin: 0; }
.sidebar-menu .menu-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar-menu .menu-link {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.sidebar-menu .menu-link:hover { background: rgba(102,126,234,0.2); color: white; padding-left: 22px; }
.sidebar-menu .menu-link.active { background: linear-gradient(135deg, #667eea, #764ba2); color: white; border-left: 3px solid white; }
.menu-icon { width: 28px; margin-right: 8px; text-align: center; }
.submenu { list-style: none; padding-left: 38px; max-height: 0; overflow: hidden; transition: max-height 0.3s; background: rgba(0,0,0,0.2); }
.submenu.show { max-height: 300px; }
.submenu .menu-link { padding: 10px 18px; font-size: 0.85rem; }
.chevron-icon { margin-left: auto; font-size: 0.7rem; transition: transform 0.3s; }
.chevron-icon.rotated { transform: rotate(180deg); }

/* ========== ANA İÇERİK ========== */
.main-wrapper { margin-top: 60px; margin-left: 0; min-height: calc(100vh - 60px); transition: margin-left 0.3s ease; }
@media (min-width: 768px) { .main-wrapper { margin-left: 260px; } }
.content-area { padding: 20px; }

/* ========== BUTONLAR ========== */
.action-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.action-btn:hover { background: rgba(255,255,255,0.3); color: white; }
.action-btn-primary { background: #28a745; }
.action-btn-primary:hover { background: #218838; }
.action-btn-secondary { background: #6c757d; }
.action-btn-secondary:hover { background: #5a6268; }
.toggle-sidebar {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    margin-right: 15px;
    cursor: pointer;
}
.quick-add-btn { background: none; border: none; color: #28a745; cursor: pointer; font-size: 0.7rem; margin-left: 5px; }
.quick-add-btn:hover { color: #218838; }

/* ========== KARTLAR VE TABLOLAR ========== */
.card { border-radius: 12px; overflow: hidden; border: none; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.card-header { background: white; border-bottom: 1px solid #e9ecef; font-weight: 600; }
.table th { background: #f8f9fa; font-weight: 600; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.75rem; }

/* ========== SEKMELER ========== */
.nav-tabs-custom { border-bottom: 2px solid #dee2e6; margin-bottom: 20px; }
.nav-tabs-custom .nav-link { border: none; color: #6c757d; padding: 10px 20px; font-weight: 500; }
.nav-tabs-custom .nav-link:hover { color: #667eea; }
.nav-tabs-custom .nav-link.active { color: #667eea; border-bottom: 3px solid #667eea; background: transparent; }

/* ========== TEKLİF FORM STİLLERİ ========== */
.offer-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.offer-header .form-label { color: rgba(255,255,255,0.9); }
.offer-header .form-control, .offer-header .form-select { background: rgba(255,255,255,0.9); border: none; }
.items-table th { background: #f8f9fa; font-size: 0.8rem; }
.summary-box { background: #f8f9fa; border-radius: 10px; padding: 15px; }
.section-title { font-size: 1rem; font-weight: 600; color: #495057; margin: 1rem 0; padding-bottom: 0.5rem; border-bottom: 2px solid #e9ecef; }

/* ========== OVERLAY ========== */
.overlay {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    display: none;
}
.overlay.show { display: block; }

/* ========== SCROLLBAR ========== */
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); }
.sidebar::-webkit-scrollbar-thumb { background: #667eea; border-radius: 5px; }