﻿/* WhatsApp Oturumları CSS */

/* Oturum kartları */
.session-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

    .session-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    }

/* WhatsApp Logo İkonu */
.whatsapp-logo-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.session-card:hover .whatsapp-logo-circle {
    transform: scale(1.1);
    background-color: #e9f7ef;
}

/* Aktif/Bekleyen Durum Badge */
.session-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    border-radius: 30px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.badge-success {
    background-color: #25D366 !important; /* WhatsApp yeşili */
    color: white;
}

.badge-warning {
    background-color: #FFC107;
    color: #343a40;
}

/* Telefon Numarası */
.phone-number {
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

    .phone-number i {
        color: #25D366;
        margin-right: 8px;
        font-size: 1rem;
    }

/* Tarih bilgileri */
.session-date-info {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

    .session-date-info i {
        width: 16px;
        margin-right: 8px;
        color: #6c757d;
    }

/* Hata mesajı alanı */
.session-error {
    background-color: #fff8f8;
    border-left: 3px solid #dc3545;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    border-radius: 4px;
}

/* Butonlar */
.card-footer .btn {
    transition: all 0.2s;
    border-radius: 8px;
    font-weight: 500;
}

.btn-success {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
}

    .btn-success:hover {
        background-color: #128C7E !important;
        border-color: #128C7E !important;
    }

.btn-primary {
    background-color: #0088cc !important;
    border-color: #0088cc !important;
}

    .btn-primary:hover {
        background-color: #006699 !important;
        border-color: #006699 !important;
    }

/* Yükleniyor animasyonu */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.spinner-whatsapp {
    color: #25D366 !important;
    width: 3rem;
    height: 3rem;
}

/* Boş durum - Oturum yok */
.empty-state {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin: 1rem 0;
}

.empty-state-icon {
    font-size: 3rem;
    color: #ADB5BD;
    margin-bottom: 1rem;
}

.empty-state-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Toast Bildirimleri */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.toast-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.toast-body {
    padding: 1rem;
    background-color: white;
}

/* Modal Stilleri */
.whatsapp-modal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.whatsapp-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.whatsapp-modal .modal-footer {
    border-top: none;
    padding-top: 0;
}

/* Medya sorguları - mobil cihazlar için uyumluluk */
@media (max-width: 576px) {
    .session-card {
        margin-bottom: 1rem;
    }

    .session-status-badge {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

/* Animasyonlar */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* QR Kod Container */
.qr-code-container {
    background-color: white;
    padding: 1rem;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qr-instructions {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

/* WhatsApp İstatistikleri */
.stats-card {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stats-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f8f9fa;
}

    .stats-item:last-child {
        border-bottom: none;
    }

.stats-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

    .stats-icon.success {
        background-color: #e9f7ef;
        color: #25D366;
    }

    .stats-icon.warning {
        background-color: #fff8e6;
        color: #FFC107;
    }

    .stats-icon.info {
        background-color: #e6f4ff;
        color: #0088cc;
    }

.stats-value {
    font-weight: 600;
    font-size: 1.1rem;
}
