/**
 * ESAPUB - Ana Stil Dosyası
 */

/* ===== Genel ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ===== Navbar ===== */
.navbar-brand {
    font-size: 1.1rem;
}

.navbar .badge {
    font-size: 0.65rem;
}

/* ===== Sidebar ===== */
.sidebar {
    min-height: calc(100vh - 120px);
}

.sidebar .list-group-item {
    border: none;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.sidebar .list-group-item:hover {
    background-color: #e9ecef;
}

.sidebar .list-group-item.active {
    background-color: #0d6efd;
    color: #fff;
}

/* ===== Kartlar ===== */
.stat-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .card-body {
    padding: 1.2rem;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: #6c757d;
}

/* ===== Durum Badge ===== */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0d6efd;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #0d6efd;
}

.timeline-item.completed::before {
    background: #198754;
    box-shadow: 0 0 0 2px #198754;
}

.timeline-item.current::before {
    background: #ffc107;
    box-shadow: 0 0 0 2px #ffc107;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 2px #ffc107; }
    50% { box-shadow: 0 0 0 6px rgba(255, 193, 7, 0.3); }
}

.timeline-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.timeline-content {
    font-size: 0.9rem;
}

/* ===== Dosya Yükleme Alanı ===== */
.file-drop-zone {
    border: 2px dashed #ced4da;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
    border-color: #0d6efd;
    background: #e7f1ff;
}

.file-drop-zone .icon {
    font-size: 2.5rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.file-drop-zone.dragover .icon {
    color: #0d6efd;
}

/* ===== Tablo ===== */
.table-hover tbody tr {
    cursor: pointer;
    transition: background-color 0.15s;
}

.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

/* ===== Bildirimler ===== */
.notification-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 0.75rem 1rem;
    transition: background-color 0.15s;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #e7f1ff;
    border-left: 3px solid #0d6efd;
}

.notification-item .time {
    font-size: 0.75rem;
    color: #6c757d;
}

/* ===== Auth Sayfaları ===== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.auth-card .card-header {
    background: none;
    border-bottom: none;
    text-align: center;
    padding: 2rem 2rem 0;
}

.auth-card .card-body {
    padding: 1.5rem 2rem 2rem;
}

.auth-card .card-footer {
    background: #f8f9fa;
    border-top: none;
    text-align: center;
    padding: 1rem;
    border-radius: 0 0 12px 12px;
}

/* ===== Mesajlar ===== */
.message-bubble {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.message-bubble.sent {
    background: #0d6efd;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message-bubble.received {
    background: #e9ecef;
    border-bottom-left-radius: 4px;
}

.message-bubble .time {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* ===== Yükleniyor Spinner ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }

    .stat-card .stat-number {
        font-size: 1.5rem;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-item::before {
        left: 9px;
    }
}
