/* Hadis Meclisi Kayıt Sistemi - Modern Stil Dosyası */

:root {
    --primary-color: #004d40;  /* Koyu yeşil (SİRAÇ logosundaki renk) */
    --secondary-color: #00695c;  /* Daha açık yeşil tonları */
    --accent-color: #00897b;
    --light-accent: #b2dfdb;
    --light-bg: #f5f5f5;
    --dark-text: #212121;
    --light-text: #fafafa;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    background-color: var(--light-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
}

/* Header ve Logo */
.app-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
    width: 100%;
}

.app-logo {
    height: 60px;
    margin-right: 15px;
}

.app-title {
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

/* Kartlar */
.card {
    box-shadow: var(--box-shadow);
    border: none;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.card-header {
    font-weight: 600;
    padding: 1rem 1.25rem;
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.card-header.bg-primary {
    background-color: var(--primary-color) !important;
}

.card-header.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.card-header.bg-dark {
    background-color: var(--dark-text) !important;
}

.card-body {
    padding: 1.5rem;
}

/* İç kartlar */
.card .card {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.card .card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* QR Kod Tarama */
#scanner-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

#scanner {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Tarama geçmişi */
.scan-log {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    background-color: white;
}

.list-group-item {
    border-radius: 6px !important;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.list-group-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.list-group-item-success {
    background-color: rgba(0, 105, 92, 0.1) !important;
    color: var(--primary-color) !important;
    border-color: rgba(0, 105, 92, 0.2) !important;
}

.list-group-item-danger {
    background-color: rgba(211, 47, 47, 0.1) !important;
    color: #d32f2f !important;
    border-color: rgba(211, 47, 47, 0.2) !important;
}

/* Responsive ayarlar */
@media (max-width: 768px) {
    #scanner {
        height: 250px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .app-logo {
        height: 40px;
    }
}

/* Animasyonlar */
.alert {
    transition: var(--transition);
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: rgba(0, 105, 92, 0.1) !important;
    color: var(--primary-color) !important;
}

.alert-danger {
    background-color: rgba(211, 47, 47, 0.1) !important;
    color: #d32f2f !important;
}

.alert-info {
    background-color: rgba(2, 136, 209, 0.1) !important;
    color: #0288d1 !important;
}

.alert-warning {
    background-color: rgba(255, 152, 0, 0.1) !important;
    color: #f57c00 !important;
}

/* Form elemanları */
.form-control {
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

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

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #555;
}

.input-group-text {
    background-color: var(--light-accent);
    color: var(--primary-color);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Butonlar */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    transition: var(--transition);
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

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

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

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--accent-color);
}

.btn-outline-dark {
    color: var(--dark-text);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn-outline-secondary {
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Tablolar */
.table-responsive {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: white;
    margin-bottom: 1.5rem;
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: rgba(0, 0, 0, 0.03);
    font-weight: 600;
    vertical-align: middle;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.table td {
    vertical-align: middle;
}

/* Dashboard */
.display-4 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--light-text);
}

.card.bg-primary, .card.bg-success, .card.bg-info {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.card.bg-primary {
    background-color: var(--primary-color) !important;
}

.card.bg-success {
    background-color: var(--secondary-color) !important;
}

.card.bg-info {
    background-color: var(--accent-color) !important;
}

/* Tab sistemi */
.nav-tabs {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
    border: none;
    color: #666;
    padding: 0.75rem 1.25rem;
    margin-right: 0.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    transition: var(--transition);
}

.nav-tabs .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.nav-tabs .nav-link.active {
    border-bottom: 3px solid var(--primary-color);
    font-weight: 600;
    color: var(--primary-color);
    background-color: white;
}

/* PDF ve Excel butonları */
#export-excel, #export-pdf {
    margin-left: 10px;
}

/* Grafik konteyneri */
.chart-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.chart-container canvas {
    display: block;
}

/* Grafik kartları */
.card .chart-container {
    padding: 10px;
}

/* Responsive grafik ayarları */
@media (max-width: 768px) {
    .chart-container {
        height: 300px !important;
    }
}

/* Telefon numarası alanı */
#telefon {
    letter-spacing: 1px;
    font-family: monospace;
    font-size: 1.1rem;
}

/* QR kod görüntüleme */
.qr-container {
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    display: inline-block;
    margin: 20px 0;
    box-shadow: var(--box-shadow);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #fff;
    text-decoration: none;
    transform: scale(1.1);
    box-shadow: 2px 2px 10px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:focus {
    color: #fff;
    text-decoration: none;
}

.whatsapp-icon {
    margin-top: 16px;
    font-size: 24px;
}

/* Responsive WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    
    .whatsapp-icon {
        margin-top: 13px;
        font-size: 20px;
    }
}

/* WhatsApp hover tooltip */
.whatsapp-float::before {
    content: "WhatsApp Destek";
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.whatsapp-float::after {
    content: "";
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #333;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .whatsapp-float::before {
        display: none;
    }
    
    .whatsapp-float::after {
        display: none;
    }
}

/* Sayfalama stilleri */
.pagination .page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.pagination-sm .page-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Sayfa bilgi alanı */
#pagination-info,
#report-pagination-info {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Responsive sayfalama */
@media (max-width: 768px) {
    .pagination {
        justify-content: center;
    }
    
    .pagination .page-item:not(.active):not(:first-child):not(:last-child) {
        display: none;
    }
    
    .pagination .page-item:nth-child(2),
    .pagination .page-item:nth-last-child(2) {
        display: inline-block !important;
    }
    
    #pagination-info,
    #report-pagination-info {
        text-align: center;
        margin-bottom: 10px;
    }
    
    #participant-pagination,
    #report-pagination {
        flex-direction: column;
        align-items: center;
    }
}

/* Kayıt sayısı göstergesi */
#participant-count {
    font-weight: 500;
    color: #495057;
}

/* Tablo responsive iyileştirmeleri */
.table-responsive {
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

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

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Sayfa boyutu seçici */
#items-per-page,
#report-items-per-page {
    font-size: 0.9rem;
    padding: 0.375rem 0.75rem;
}

/* Hover efektleri */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Loading states */
.spinner-border {
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
} 