.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
}

.flash-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease;
}

.flash-alert.success { background: #198754; }
.flash-alert.danger { background: #dc3545; }
.flash-alert.warning { background: #ffc107; color: #212529; }
.flash-alert.info { background: #0dcaf0; color: #212529; }

.flash-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 15px;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.portal-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f4f7f6;
    font-family: Arial, Helvetica, sans-serif;
    color: #18373a;
}

.portal-sidebar {
    width: 260px;
    background: #063d43;
    color: #fff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.portal-brand {
    padding: 24px 20px;
    font-size: 18px;
    font-weight: 700;
    color: #c99b55;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.portal-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #d1dede;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s ease;
}

.portal-menu a:hover, .portal-menu a.active {
    background: rgba(201, 155, 85, 0.15);
    color: #ddb674;
    border-left: 4px solid #c99b55;
}

.portal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.portal-header {
    height: 70px;
    background: #fff;
    border-bottom: 1px solid #d9e0de;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.portal-user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
}

.portal-content {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

.portal-card {
    background: #fff;
    border: 1px solid #d9e0de;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(6,61,67,0.04);
}

.portal-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f1;
}

.portal-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #063d43;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-box {
    background: #fff;
    border: 1px solid #d9e0de;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #edf4f2;
    color: #063d43;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #063d43;
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: #6f7e7f;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.portal-table th, .portal-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #edf2f1;
}

.portal-table th {
    background: #f8faf9;
    color: #496365;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
}

.portal-table tr:hover {
    background: #fdfdfd;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-warning { background: #fff8e1; color: #f57f17; }
.badge-info { background: #e1f5fe; color: #0288d1; }
.badge-danger { background: #ffebee; color: #c62828; }
.badge-secondary { background: #eceff1; color: #546e7a; }

.timeline {
    position: relative;
    padding: 10px 0 10px 24px;
    list-style: none;
    margin: 0;
}

.timeline:before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 8px;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 16px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -20px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0f766e;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #0f766e;
}

.timeline-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
}

.timeline-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.timeline-date {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

.auth-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #063d43, #0b5158);
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.auth-logo {
    text-align: center;
    margin-bottom: 25px;
}

.auth-logo img {
    max-width: 220px;
    margin: 0 auto;
}

.auth-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #063d43;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    font-size: 13px;
    color: #6f7e7f;
    margin-bottom: 25px;
}

.asurec-bar-kapsayici {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 16px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.asurec-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    min-width: 650px;
    gap: 12px;
}

.asurec-bar:before {
    content: "";
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e2e8f0;
    z-index: 0;
}

.asurec-adim {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.asurec-daire {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #cbd5e1;
    color: #64748b;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 16px;
    margin: 0 auto 8px;
    transition: all 0.2s ease;
}

.asurec-adim.tamamlandi .asurec-daire {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.asurec-adim.aktif .asurec-daire {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.2);
}

.asurec-metin {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.asurec-adim.aktif .asurec-metin {
    color: #0f766e;
    font-weight: 700;
}

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.galeri-oge {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    text-align: center;
}

.galeri-oge img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.foto-etiket {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
}

