/* ATSO (Antalya Ticaret ve Sanayi Odası) kurumsal renkleri */
:root {
    --atso-lacivert: #002855;
    --atso-mavi: #004a8f;
    --atso-turuncu: #e65100;
    --atso-turuncu-acik: #ff8f00;
}

/* Üst menü - ATSO lacivert */
.navbar.atso-navbar,
.navbar.bg-primary {
    background: linear-gradient(135deg, var(--atso-lacivert) 0%, var(--atso-mavi) 100%) !important;
    border-bottom: 3px solid var(--atso-turuncu);
}

.navbar-dark .navbar-brand {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #fff !important;
    background-color: rgba(230, 81, 0, 0.25);
    border-radius: 4px;
}

.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-outline-light:hover {
    background-color: var(--atso-turuncu);
    border-color: var(--atso-turuncu);
    color: #fff;
}

/* ========== Ana sayfa dashboard ========== */
.dashboard-page {
    min-height: 60vh;
}

.dashboard-hero {
    position: relative;
    background: linear-gradient(135deg, var(--atso-lacivert) 0%, var(--atso-mavi) 55%, #0066b3 100%);
    color: #fff;
    border-radius: 0 0 1.5rem 1.5rem;
    overflow: hidden;
    margin: 0 -0.75rem;
    box-shadow: 0 8px 24px rgba(0, 42, 85, 0.25);
}

.dashboard-hero-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.dashboard-title {
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.dashboard-lead {
    font-size: 1.05rem;
    opacity: 0.95;
    max-width: 32rem;
}

.dashboard-hero-icon {
    font-size: 6rem;
    opacity: 0.2;
}

@media (min-width: 992px) {
    .dashboard-title { font-size: 2.25rem; }
}

.dashboard-hero-compact .dashboard-hero-icon { display: none; }
.dashboard-hero-compact .dashboard-title { font-size: 1.65rem; }
@media (min-width: 992px) {
    .dashboard-hero-compact .dashboard-title { font-size: 1.85rem; }
}

/* İstatistik kartları */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    color: #fff;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-card-primary {
    background: linear-gradient(135deg, var(--atso-lacivert), var(--atso-mavi));
}

.stat-card-primary:hover {
    color: #fff;
}

.stat-card-info {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
}

.stat-card-success {
    background: linear-gradient(135deg, #198754, #146c43);
}

.stat-card-warning {
    background: linear-gradient(135deg, var(--atso-turuncu), var(--atso-turuncu-acik));
}

.stat-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    font-size: 1.5rem;
}

.stat-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Dashboard kart (grafik / hızlı erişim) */
.dashboard-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.dashboard-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 42, 85, 0.03);
}

.dashboard-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--atso-lacivert);
    margin: 0;
}

.dashboard-card-body {
    padding: 1.25rem;
}

.chart-wrap {
    height: 220px;
    position: relative;
}

/* Raporlar sayfası özet kartları */
.rapor-stat-card {
    border-radius: 0.75rem;
    transition: transform 0.15s, box-shadow 0.15s;
}
.rapor-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}
.rapor-stat-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.6rem;
    font-size: 1.4rem;
    color: #fff;
}
.rapor-stat-primary .rapor-stat-icon { background: linear-gradient(135deg, var(--atso-lacivert), var(--atso-mavi)); }
.rapor-stat-success .rapor-stat-icon { background: linear-gradient(135deg, #198754, #20c997); }
.rapor-stat-warning .rapor-stat-icon { background: linear-gradient(135deg, #fd7e14, #ffc107); }
.rapor-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
}
.rapor-stat-label {
    font-size: 0.8rem;
}

/* Hızlı erişim linkleri */
.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--atso-lacivert);
    text-decoration: none;
    transition: background 0.15s, padding-left 0.15s;
}

.quick-link:last-child {
    border-bottom: none;
}

.quick-link:hover {
    background: rgba(0, 74, 143, 0.08);
    color: var(--atso-mavi);
    padding-left: 0.5rem;
}

.quick-link i {
    font-size: 1.25rem;
    opacity: 0.85;
    flex-shrink: 0;
}

.quick-link span {
    flex: 1;
}

.quick-link small {
    margin-left: auto;
}

/* Organizasyonlar sayfası – tablo ve boş durum */
.org-table thead th {
    font-weight: 600;
    color: var(--atso-lacivert);
    background: rgba(0, 42, 85, 0.05);
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
    padding: 0.875rem 1rem;
}

.org-table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
}

.org-table tbody tr:hover {
    background: rgba(0, 74, 143, 0.04);
}

.org-empty-icon {
    font-size: 4rem;
    color: rgba(0, 42, 85, 0.2);
}

/* ========== Giriş sayfası (baştan) ========== */
.login-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    padding: 2rem 1rem;
    background: linear-gradient(180deg, rgba(0, 42, 85, 0.05) 0%, #f8f9fa 40%);
}

.login-page .row {
    width: 100%;
}

.login-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #dee2e6;
    padding: 2rem 2.5rem;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 42, 85, 0.08);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--atso-lacivert), var(--atso-mavi));
    border-radius: 1rem 1rem 0 0;
}

/* Logo: orta boy, oran korunur */
.login-logo-wrap {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo-wrap .login-logo {
    max-height: 56px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.login-logo-placeholder {
    display: inline-block;
    background: linear-gradient(135deg, var(--atso-lacivert), var(--atso-mavi));
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
}

.login-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--atso-lacivert);
    text-align: center;
    margin-bottom: 0.35rem;
}

.login-subtitle {
    font-size: 0.95rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Form: standart, okunaklı inputlar */
.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-form .form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.4rem;
}

.login-form .form-control {
    font-size: 1rem;
    padding: 0.6rem 0.85rem;
    height: auto;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    background: #fff;
}

.login-form .form-control::placeholder {
    color: #adb5bd;
}

.login-form .form-control:focus {
    border-color: var(--atso-mavi);
    box-shadow: 0 0 0 0.2rem rgba(0, 74, 143, 0.2);
    outline: 0;
}

.login-form .btn-submit {
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    height: auto;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--atso-lacivert), var(--atso-mavi));
    border: none;
    color: #fff;
    width: 100%;
    transition: background 0.2s, box-shadow 0.2s;
}

.login-form .btn-submit:hover {
    background: linear-gradient(135deg, var(--atso-mavi), #0066b3);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 74, 143, 0.35);
}

.login-card .alert-danger {
    font-size: 0.95rem;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
}
