/* OtoServisim Özel CSS */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
    margin-bottom: 20px;
}

.card-header {
    font-weight: 600;
}

.table th {
    font-weight: 600;
}

/* Koyu tablo başlıkları - Bootstrap table-dark */
.table-dark,
.table-dark th,
.table-dark td,
thead.table-dark,
thead.table-dark th,
thead.table-dark td {
    background-color: #212529 !important;
    color: #fff !important;
    border-color: #32383e !important;
}

/* Açık tablo başlıkları (varsayılan) */
.table thead:not(.table-dark) th {
    background-color: #f8f9fa;
}

.btn {
    border-radius: 5px;
    font-weight: 500;
}

.badge {
    font-size: 0.85rem;
    padding: 0.4em 0.6em;
}

.alert {
    border-left: 4px solid;
}

.alert-success {
    border-left-color: var(--success-color);
}

.alert-danger {
    border-left-color: var(--danger-color);
}

.alert-info {
    border-left-color: var(--info-color);
}

.alert-warning {
    border-left-color: var(--warning-color);
}

footer {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid #dee2e6;
}

/* Dashboard kartları */
.card.text-white h2 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
}

/* Tıklanabilir kart hover efekti */
.card-link-hover {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.card-link-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Form stilleri */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Tablo responsive */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.4rem;
        font-size: 0.75rem;
    }
}

/* Print stilleri */
@media print {
    .navbar,
    .btn,
    footer,
    .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* ====== Landing / anonim navbar (OtoSoft tarzı) ====== */
.navbar-landing {
    background: linear-gradient(135deg, #0061f2 0%, #6900c7 100%);
    padding-top: .6rem;
    padding-bottom: .6rem;
}
.navbar-landing .navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
}
.landing-menu .nav-link {
    color: rgba(255, 255, 255, .9);
    font-weight: 500;
    padding: .5rem .9rem;
    transition: color .2s ease;
}
.landing-menu .nav-link:hover,
.landing-menu .nav-link:focus {
    color: #ffd56a;
}
.btn-nav-login {
    border: 2px solid rgba(255, 255, 255, .85);
    color: #fff;
    border-radius: 50rem;
    padding: .45rem 1.35rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all .2s ease;
}
.btn-nav-login:hover {
    background: #fff;
    color: #0061f2;
}
.btn-nav-register {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: #fff;
    border-radius: 50rem;
    padding: .45rem 1.35rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all .2s ease;
}
.btn-nav-register:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(40, 167, 69, .4);
}

@media (max-width: 991.98px) {
    .landing-cta .btn { width: 100%; }
}

/* ====== Fatura satırları — eklenen ürün belirgin olsun ====== */
#satirlarTable .satir-row td { vertical-align: top; padding-top: .5rem; padding-bottom: .5rem; }
#satirlarTable .sl-ad { font-weight: 600; }
#satirlarTable .satir-row .sl-toplam { font-size: 1.02rem; }
#satirlarTable .satir-row { transition: background-color .3s ease; }
#satirlarTable .satir-row:hover { background-color: #f6f9ff; }

@keyframes satirVurgu {
    0%   { background-color: #c7f0d8; }
    60%  { background-color: #e6f7ee; }
    100% { background-color: transparent; }
}
.satir-row.satir-vurgu > td {
    animation: satirVurgu 1.3s ease-out;
}
.satir-row.satir-vurgu > td:first-child {
    box-shadow: inset 4px 0 0 0 #198754;
}
