/* 
 * WhatsApp Mesaj Sistemi - Ana Stil Dosyası
 * Versiyon: 2.0.0
 */

/* Genel Stiller */
:root {
    --primary-color: #25d366;  /* WhatsApp yeşili */
    --secondary-color: #128c7e;
    --accent-color: #075e54;
    --light-color: #dcf8c6;
    --gray-color: #f5f5f5;
    --dark-color: #333;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Sidebar stilleri */
.sidebar {
    background: var(--accent-color);
    min-height: 100vh;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    border-left: 4px solid transparent;
    transition: all 0.3s;
    padding: 0.8rem 1rem;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: white;
}

.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: white;
    font-weight: 500;
}

/* Kartlar ve Listeler */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-bottom: none;
    padding: 15px 20px;
    background-color: white;
    border-radius: 10px 10px 0 0 !important;
}

.list-group-item {
    border: none;
    padding: 0.8rem 1.25rem;
    background-color: white;
    transition: all 0.2s;
}

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

/* Butonlar */
.btn {
    border-radius: 5px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-success, .btn-info, .btn-danger, .btn-warning {
    color: white;
}

/* WhatsApp özellikleri */
.whatsapp-bubble {
    position: relative;
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 15px;
    max-width: 80%;
}

.whatsapp-bubble::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

.whatsapp-bubble.outgoing {
    background-color: var(--light-color);
    margin-left: auto;
}

.whatsapp-bubble.outgoing::after {
    border-left-color: var(--light-color);
    border-right: 0;
    right: -10px;
    top: 10px;
}

.whatsapp-bubble.incoming {
    background-color: white;
}

.whatsapp-bubble.incoming::after {
    border-right-color: white;
    border-left: 0;
    left: -10px;
    top: 10px;
}

.whatsapp-status {
    font-size: 0.8rem;
    color: #999;
    text-align: right;
    margin-top: 5px;
}

.whatsapp-status i {
    margin-left: 5px;
}

.whatsapp-status.sent i {
    color: #999;
}

.whatsapp-status.delivered i {
    color: #999;
}

.whatsapp-status.read i {
    color: #4fc3f7;
}

/* Animasyonlar */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Form Elemanları */
.form-control {
    border-radius: 5px;
    padding: 0.6rem 1rem;
    border: 1px solid #e0e0e0;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
}

/* Uyarılar ve Bildirimler */
.alert {
    border-radius: 8px;
    border: none;
}

.badge {
    font-weight: 500;
    padding: 0.4em 0.7em;
}

/* Duyarlı Tasarım */
@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        z-index: 1000;
        min-height: auto;
    }
    
    .content-wrapper {
        margin-top: 60px;
    }
}

/* Giriş Sayfası */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

/* Tablo Stilleri */
.table {
    border-radius: 5px;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(37, 211, 102, 0.05);
}

/* Profil Sayfası */
.profile-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Ayarlar Sayfası */
.settings-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.settings-title {
    font-weight: 600;
    color: var(--dark-color);
}

.settings-description {
    color: #777;
    font-size: 0.9rem;
}