/* ================================================
   Dahinet - Dashboard (Müşteri Paneli) Stilleri
   dashboard.css — Part 1: Welcome, Stats, Alert
   ================================================ */

/* ── Dashboard Wrapper ── */
.dn-dashboard {
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Welcome Banner ── */
.dn-welcome-banner {
    background: linear-gradient(135deg, #0052a3 0%, #0099FF 60%, #00D4FF 100%);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 102, 204, 0.3);
}
.dn-welcome-banner::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
}
.dn-welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -60px; right: 120px;
    width: 160px; height: 160px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}
.dn-welcome-left {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
}
.dn-welcome-avatar {
    width: 56px; height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.3);
}
.dn-welcome-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.2;
}
.dn-welcome-sub {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}
.dn-welcome-right {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}
.dn-welcome-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.3);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.dn-welcome-action:hover {
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}
.dn-welcome-action-primary {
    background: #fff;
    color: #0066CC;
    border-color: #fff;
}
.dn-welcome-action-primary:hover {
    background: #e8f0fe;
    color: #0052a3;
    border-color: #e8f0fe;
}

/* ── Stats Grid ── */
.dn-home-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.dn-home-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.dn-home-stat-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    text-decoration: none;
}
.dn-hstat-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 0 0 14px 14px;
}
.dn-hstat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.dn-hstat-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.dn-hstat-num {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1;
    color: #111827;
}
.dn-hstat-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
    font-weight: 500;
}
.dn-hstat-arrow {
    color: #d1d5db;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}
.dn-home-stat-card:hover .dn-hstat-arrow { color: #9ca3af; }
.dn-hstat-badge {
    width: 24px; height: 24px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    animation: dn-pulse 2s infinite;
}
@keyframes dn-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    50%       { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

/* Color variants */
.dn-hstat-blue .dn-hstat-icon  { background: #dbeafe; color: #2563eb; }
.dn-hstat-blue .dn-hstat-bar   { background: #3b82f6; }
.dn-hstat-green .dn-hstat-icon { background: #d1fae5; color: #059669; }
.dn-hstat-green .dn-hstat-bar  { background: #10b981; }
.dn-hstat-red .dn-hstat-icon   { background: #fee2e2; color: #dc2626; }
.dn-hstat-red .dn-hstat-bar    { background: #ef4444; }
.dn-hstat-amber .dn-hstat-icon { background: #fef3c7; color: #d97706; }
.dn-hstat-amber .dn-hstat-bar  { background: #f59e0b; }
.dn-hstat-alert {
    border-color: #fcd34d;
    background: #fffbeb;
}
.dn-hstat-alert .dn-hstat-num  { color: #d97706; }

/* ── Alert Banner ── */
.dn-alert-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    flex-wrap: wrap;
}
.dn-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.dn-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}
.dn-alert-banner-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}
.dn-alert-danger .dn-alert-banner-icon { background: #fee2e2; color: #dc2626; }
.dn-alert-info .dn-alert-banner-icon   { background: #dbeafe; color: #2563eb; }
.dn-alert-banner-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dn-alert-banner-body strong {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
}
.dn-alert-banner-body span {
    font-size: 0.8125rem;
    color: #6b7280;
}
.dn-alert-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.dn-alert-danger .dn-alert-banner-btn {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 2px 8px rgba(220,38,38,0.3);
}
.dn-alert-danger .dn-alert-banner-btn:hover {
    background: #b91c1c;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}
.dn-alert-info .dn-alert-banner-btn {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.dn-alert-info .dn-alert-banner-btn:hover {
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ================================================
   Part 2: Section, Quick Access, Panels, Responsive
   ================================================ */

/* ── Section Header ── */
.dn-section { display: flex; flex-direction: column; gap: 20px; }
.dn-section-header { display: flex; align-items: center; justify-content: space-between; }
.dn-section-title-wrap { display: flex; align-items: center; gap: 14px; }
.dn-section-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.125rem; color: #3b82f6; flex-shrink: 0;
}
.dn-section-title { font-size: 1.125rem; font-weight: 700; color: #111827; margin: 0 0 2px; }
.dn-section-sub   { font-size: 0.8125rem; color: #6b7280; margin: 0; }

/* ── Quick Access Grid ── */
.dn-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.dn-quick-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 16px;
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.dn-quick-card:hover {
    border-color: #0066CC;
    box-shadow: 0 4px 16px rgba(0,102,204,0.12);
    transform: translateY(-2px);
    text-decoration: none;
}
.dn-quick-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.0625rem; flex-shrink: 0;
    transition: transform 0.2s ease;
}
.dn-quick-card:hover .dn-quick-icon { transform: scale(1.1); }
.dn-quick-label {
    flex: 1; font-size: 0.875rem; font-weight: 600; color: #374151;
    transition: color 0.2s ease;
}
.dn-quick-card:hover .dn-quick-label { color: #0066CC; }
.dn-quick-arrow { font-size: 0.75rem; color: #d1d5db; flex-shrink: 0; transition: all 0.2s ease; }
.dn-quick-card:hover .dn-quick-arrow { color: #0066CC; transform: translateX(2px); }

.dn-qi-blue   { background: #dbeafe; color: #2563eb; }
.dn-qi-amber  { background: #fef3c7; color: #d97706; }
.dn-qi-green  { background: #d1fae5; color: #059669; }
.dn-qi-indigo { background: #e0e7ff; color: #4f46e5; }
.dn-qi-red    { background: #fee2e2; color: #dc2626; }
.dn-qi-teal   { background: #ccfbf1; color: #0f766e; }
.dn-qi-purple { background: #f3e8ff; color: #7c3aed; }
.dn-qi-pink   { background: #fce7f3; color: #be185d; }

/* ── Home Panels ── */
.dn-home-panels { display: flex; flex-direction: column; gap: 16px; }
.dn-panels-full  { display: flex; flex-direction: column; gap: 16px; }
.dn-panels-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dn-panels-col   { display: flex; flex-direction: column; gap: 16px; }

.dn-panel-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease;
}
.dn-panel-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.dn-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    background: #fafafa;
}
.dn-panel-title-wrap { display: flex; align-items: center; gap: 10px; }
.dn-panel-icon  { font-size: 1rem; color: #6b7280; }
.dn-panel-title { font-size: 0.9375rem; font-weight: 700; color: #111827; margin: 0; }
.dn-panel-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px;
    background: #0066CC; color: #fff;
    border-radius: 10px; font-size: 0.7rem; font-weight: 700; margin-left: 6px;
}
.dn-panel-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 7px;
    font-size: 0.75rem; font-weight: 600;
    background: #f3f4f6; border: 1px solid #e5e7eb;
    color: #374151; text-decoration: none; transition: all 0.18s ease;
}
.dn-panel-btn:hover { background: #0066CC; border-color: #0066CC; color: #fff; text-decoration: none; }
.dn-panel-body   { padding: 16px 20px; font-size: 0.875rem; color: #374151; }
.dn-panel-footer { padding: 12px 20px; border-top: 1px solid #f3f4f6; background: #fafafa; font-size: 0.8125rem; }

.dn-panel-list { list-style: none; margin: 0; padding: 0; }
.dn-panel-list-item { border-bottom: 1px solid #f3f4f6; }
.dn-panel-list-item:last-child { border-bottom: none; }
.dn-panel-list-link {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px; color: #374151; text-decoration: none;
    font-size: 0.875rem; font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}
.dn-panel-list-link:hover  { background: #f8fafc; color: #0066CC; text-decoration: none; }
.dn-panel-list-link.active { background: #eff6ff; color: #0066CC; font-weight: 600; }
.dn-pli-icon { font-size: 0.875rem; color: #9ca3af; width: 18px; flex-shrink: 0; transition: color 0.15s ease; }
.dn-panel-list-link:hover .dn-pli-icon { color: #0066CC; }
.dn-pli-arrow { font-size: 0.7rem; color: #d1d5db; margin-left: auto; transition: all 0.15s ease; }
.dn-panel-list-link:hover .dn-pli-arrow { color: #0066CC; transform: translateX(2px); }
.dn-panel-list-item-static {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px; font-size: 0.875rem; color: #6b7280;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .dn-home-stats { grid-template-columns: repeat(2, 1fr); }
    .dn-quick-grid  { grid-template-columns: repeat(2, 1fr); }
    .dn-panels-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .dn-welcome-banner { flex-direction: column; align-items: flex-start; padding: 20px; }
    .dn-welcome-right  { width: 100%; }
    .dn-welcome-action { flex: 1; justify-content: center; }
    .dn-welcome-title  { font-size: 1.25rem; }
    .dn-alert-banner   { flex-direction: column; align-items: flex-start; }
    .dn-alert-banner-btn { width: 100%; justify-content: center; }
}
@media (max-width: 576px) {
    .dn-home-stats  { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .dn-home-stat-card { padding: 14px; }
    .dn-hstat-num   { font-size: 1.5rem; }
    .dn-quick-grid  { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .dn-quick-card  { padding: 14px 12px; }
    .dn-quick-label { font-size: 0.8125rem; }
}
