html {
    font-size: 14px;
}

:root {
    --app-bar-height: 56px;
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    background-color: #f5f6fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.app-content {
    flex: 1 0 auto;
}

/* Navbar */
.navbar {
    min-height: var(--app-bar-height);
}

.navbar-dark .nav-link.active,
.navbar-dark .nav-link:hover {
    color: #fff !important;
    background-color: rgba(255,255,255,0.1);
    border-radius: 6px;
}

/* Kartlar */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.15s;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
}

/* Dashboard kartları */
.dashboard-card {
    border-left: 4px solid;
    border-radius: 12px;
}

.dashboard-card .card-body {
    padding: 1.25rem;
}

.dashboard-card h3 {
    font-weight: 700;
}

/* Tablo */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    vertical-align: middle;
}

/* Form */
.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102,126,234,0.15);
}

/* Butonlar */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.4rem 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd6, #6a4190);
}

/* Badge'ler */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    border-radius: 6px;
}

/* Giriş sayfası */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* Login sayfası fullscreen */
body.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.login-page .app-content {
    padding: 0 !important;
}

body.login-page main {
    margin: 0 !important;
    padding: 0 !important;
}

body.login-page .login-container {
    background: transparent;
}

/* Toastr responsive */
@media (max-width: 768px) {
    #toast-container {
        width: 90% !important;
        left: 5% !important;
        right: 5% !important;
    }
}

@media (min-width: 769px) {
    #toast-container {
        width: 40% !important;
        left: 30% !important;
        right: 30% !important;
    }
}

#toast-container > .toast {
    width: 100% !important;
}

/* Footer */
.footer {
    width: 100%;
    background-color: #212529;
    height: calc(var(--app-bar-height) - 6px);
    flex-shrink: 0;
    border-top: 1px solid #1f2937;
    color: #0097ff;
}

.footer .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    color: inherit;
}

/* Sayfa başlıkları */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
}

.page-header h2 {
    margin: 0;
    font-weight: 700;
    color: #333;
}

/* Teklif satır tablosu */
.teklif-satir-row:hover {
    background-color: #f8f9fa;
}

.teklif-satir-row .form-control,
.teklif-satir-row .form-select {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

/* Arama autocomplete */
.urun-arama-sonuc {
    position: absolute;
    z-index: 1050;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
}

.urun-arama-sonuc .list-group-item {
    cursor: pointer;
    padding: 0.5rem 0.75rem;
}

.urun-arama-sonuc .list-group-item:hover {
    background-color: #667eea;
    color: white;
}
