/**
 * Tiridi.css - WhatsApp Mesajlaşma Sistemi Genel Stil Dosyası
 * 
 * Bu dosya tüm proje genelinde kullanılacak özel stilleri içerir.
 * Bootstrap dışında kalan tüm stiller buraya yazılmalıdır.
 */

/* ========================================
   FONT TANIMLARI - Open Sans
======================================== */
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Opensans/OpenSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Opensans/OpenSans-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Opensans/OpenSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Opensans/OpenSans-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Opensans/OpenSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Opensans/OpenSans-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Opensans/OpenSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Opensans/OpenSans-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Opensans/OpenSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Opensans/OpenSans-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Opensans/OpenSans-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Opensans/OpenSans-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
}

/* ========================================
   GENEL TANIMLAR
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* ========================================
   YARDIMCI SINIFLAR
======================================== */
.text-opensans {
    font-family: 'Open Sans', sans-serif;
}

.fw-light { font-weight: 300; }
.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fw-extrabold { font-weight: 800; }

/* ========================================
   GİRİŞ SAYFASI STİLLERİ
======================================== */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo h1 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-logo p {
    color: #666;
    font-size: 14px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #999;
}

/* ========================================
   ALERT STİLLERİ (Bootstrap'e Ek)
======================================== */
.alert {
    border-radius: 6px;
    font-size: 14px;
}

/* ========================================
   BUTTON STİLLERİ (Bootstrap'e Ek)
======================================== */
.btn-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-gradient-primary:active {
    transform: translateY(0);
}

/* ========================================
   FORM STİLLERİ (Bootstrap'e Ek)
======================================== */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

/* ========================================
   RESPONSIVE AYARLAR
======================================== */
@media (max-width: 576px) {
    .login-container {
        padding: 30px 20px;
    }
    
    .login-logo h1 {
        font-size: 24px;
    }
}

/* ========================================
   ADMIN LAYOUT - GENEL YAPILAR
======================================== */
.admin-layout {
    padding-top: 56px; /* Navbar yüksekliği */
}

.admin-wrapper {
    display: flex;
    min-height: calc(100vh - 56px);
}

/* ========================================
   TOP NAVBAR STİLLERİ
======================================== */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.badge-notification {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.65rem;
    padding: 0.25em 0.4em;
}

/* ========================================
   SIDEBAR STİLLERİ - RESPONSIVE & COLLAPSIBLE
======================================== */
.sidebar {
    position: fixed;
    top: 56px; /* Navbar yüksekliği */
    left: 0;
    bottom: 0;
    width: 250px;
    background-color: #fff;
    border-right: 1px solid #dee2e6;
    transition: all 0.3s ease;
    z-index: 1000;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar.collapsed {
    width: 70px;
}

/* Sidebar Header */
.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.sidebar-brand i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    transition: margin 0.3s ease;
}

.sidebar.collapsed .sidebar-brand i {
    margin-right: 0;
}

/* Sidebar Content */
.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Sidebar Menu */
.sidebar-menu {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-menu .nav {
    height: 100%;
}

/* Menu Items */
.sidebar .nav-item {
    margin: 0.25rem 0.5rem;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #495057;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    margin-right: 0.75rem;
    transition: margin 0.3s ease;
}

.sidebar.collapsed .nav-link i {
    margin-right: 0;
}

.sidebar .nav-link:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.sidebar .nav-link.active {
    background-color: #667eea;
    color: #fff;
}

.sidebar .nav-link.active:hover {
    background-color: #5568d3;
}

/* Sidebar Text */
.sidebar-text {
    transition: opacity 0.3s ease, width 0.3s ease;
    opacity: 1;
}

.sidebar.collapsed .sidebar-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* Sidebar Badge */
.sidebar-badge {
    margin-left: auto;
    font-size: 0.75rem;
}

.sidebar.collapsed .sidebar-badge {
    display: none;
}

/* Sidebar Divider */
.sidebar-divider {
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

/* ========================================
   MAIN CONTENT AREA
======================================== */
.main-content {
    flex: 1;
    margin-left: 250px !important;
    padding: 0 !important;
    transition: margin-left 0.3s ease;
    background-color: #f8f9fa;
    min-height: calc(100vh - 56px);
    width: calc(100% - 250px) !important;
}

.main-content > .container-fluid,
.main-content > div > .container-fluid {
    padding: 1.5rem !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 70px !important;
    width: calc(100% - 70px) !important;
}

/* ========================================
   RESPONSIVE - MOBILE
======================================== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
        box-shadow: none;
    }
    
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .sidebar.collapsed {
        width: 250px;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    /* Overlay when sidebar is open on mobile */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

/* ========================================
   TOOLTIP ADJUSTMENTS
======================================== */
.sidebar.collapsed .nav-link {
    position: relative;
}

.sidebar.collapsed .nav-link:hover::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: #212529;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    margin-left: 0.5rem;
    font-size: 0.875rem;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .sidebar .nav-link:hover::after {
        display: none;
    }
}

/* ========================================
   ADMIN PANELİ - KART STİLLERİ
======================================== */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

/* ========================================
   ADMIN PANELİ - TABLO STİLLERİ
======================================== */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
    font-size: 14px;
}

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

/* ========================================
   ADMIN PANELİ - BADGE STİLLERİ
======================================== */
.badge {
    font-weight: 600;
    padding: 0.4em 0.8em;
    border-radius: 4px;
}

/* ========================================
   ÖZEL SCROLLBAR
======================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ========================================
   MODAL SİSTEMİ - Özel Modal Stilleri
======================================== */

/* Modal başlık icon animasyonu */
.modal-header i.fas {
    animation: modalIconPulse 0.5s ease-in-out;
}

@keyframes modalIconPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Modal fade-in animasyonu */
.modal.fade .modal-dialog {
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

/* Modal body'de HTML içeriği için stiller */
#alertModalBody,
#confirmModalBody {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

#alertModalBody strong,
#confirmModalBody strong {
    color: #000;
    font-weight: 600;
}

/* Confirm modal uyarı renkleri */
#confirmModal .modal-header {
    border-bottom: 3px solid rgba(0, 0, 0, 0.1);
}

/* Modal butonları hover efektleri */
#confirmModalOkBtn {
    min-width: 100px;
    transition: all 0.2s ease;
}

#confirmModalOkBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Success modal */
.modal-header.bg-success .fas {
    color: #fff;
}

/* Error modal */
.modal-header.bg-danger .fas {
    color: #fff;
}

/* Warning modal */
.modal-header.bg-warning .fas {
    color: #333;
}

/* Info modal */
.modal-header.bg-info .fas {
    color: #fff;
}

