/* Gün Sonu Sayfası Stilleri */

.gunsonu-live-section, .gunsonu-history-section {
    margin-bottom: 30px;
}

/* Statistics Grid */
.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
    padding: 0 4px;
}

.statistics-grid.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Stat Card */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid #f1f3f4;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e2e8f0, #cbd5e1);
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(254, 100, 71, 0.3);
}

.stat-card:hover::before {
    background: linear-gradient(90deg, #fe6447, #ff8a75);
}

/* Stat Icon */
.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    position: relative;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.stat-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0.2;
    border-radius: inherit;
    filter: blur(8px);
    z-index: -1;
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon::after {
    transform: scale(1.2);
    opacity: 0.4;
}

/* Stat Card Types */
.stat-card-primary .stat-icon {
    background: linear-gradient(135deg, #fe6447 0%, #ff8a75 100%);
}

.stat-card-success .stat-icon {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.stat-card-warning .stat-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.stat-card-info .stat-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.stat-card-secondary .stat-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

/* Stat Content */
.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.2;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.1;
    margin: 0;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-description {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 6px;
    line-height: 1.4;
}

/* Hover Effects */
.stat-card-primary:hover {
    background: linear-gradient(135deg, rgba(254, 100, 71, 0.02), rgba(255, 138, 117, 0.02));
}

.stat-card-success:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.02), rgba(52, 211, 153, 0.02));
}

.stat-card-warning:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.02), rgba(251, 191, 36, 0.02));
}

.stat-card-info:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02), rgba(96, 165, 250, 0.02));
}

.stat-card-secondary:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.02), rgba(167, 139, 250, 0.02));
}

.stat-card-secondary:hover::before {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #28a745;
    font-weight: 500;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.payment-method-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

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

.payment-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.payment-icon.nakit { background: #28a745; }
.payment-icon.kredi { background: #007bff; }
.payment-icon.sodexo { background: #e74c3c; }
.payment-icon.setcard { background: #9b59b6; }
.payment-icon.multinet { background: #3498db; }
.payment-icon.ticket { background: #f39c12; }
.payment-icon.metropol { background: #1abc9c; }
.payment-icon.online { background: #34495e; }
.payment-icon.diger { background: #6c757d; }

.payment-info {
    flex: 1;
}

.payment-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.payment-amount {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.cancellation-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.info-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.info-warning .info-icon { background: #ffc107; }
.info-danger .info-icon { background: #dc3545; }
.info-secondary .info-icon { background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%); }

.info-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.gunsonu-reports-list {
    display: grid;
    gap: 15px;
}

.gunsonu-report-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.gunsonu-report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.report-date, .report-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.report-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.report-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.stat-value.success {
    color: #28a745;
}

.report-footer {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.report-detail-btn, .report-print-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.report-detail-btn {
    background: #007bff;
    color: #fff;
}

.report-detail-btn:hover {
    background: #0056b3;
}

.report-print-btn {
    background: #6c757d;
    color: #fff;
}

.report-print-btn:hover {
    background: #545b62;
}

/* Modal Styles */
.modern-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 800px;
    max-height: 90vh;
    margin: 5vh auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 10001;
}

.modal-content.modal-large {
    max-width: 1000px;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.comparison-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.comparison-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.comparison-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.comparison-input-group {
    position: relative;
    margin-bottom: 10px;
}

.comparison-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: border-color 0.2s;
}

.comparison-input:focus {
    outline: none;
    border-color: #007bff;
}

.currency-symbol {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #666;
}

.system-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #e9ecef;
    border-radius: 6px;
    margin-top: 8px;
}

.system-label {
    font-size: 0.9rem;
    color: #666;
}

.system-amount {
    font-weight: 600;
    color: #333;
}

.difference-indicator {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.difference-indicator.show {
    display: block;
}

.difference-indicator.match {
    background: #d4edda;
    color: #155724;
}

.difference-indicator.diff {
    background: #f8d7da;
    color: #721c24;
}

.comparison-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.summary-difference {
    font-weight: 600;
    font-size: 1.1rem;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid #e0e0e0;
}

.summary-label {
    color: #666;
}

.summary-amount {
    font-weight: 600;
    color: #333;
}

.comparison-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #856404;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.gunsonu-detay-container {
    padding: 10px;
}

.detay-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.detay-header h4 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 8px;
}

.detay-header p {
    color: #666;
    font-size: 0.9rem;
}

.detay-section {
    margin-bottom: 25px;
}

.detay-section h5 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.detay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detay-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detay-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.detay-value {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.detay-value.success {
    color: #28a745;
}

.detay-value.warning {
    color: #ffc107;
}

.detay-value.danger {
    color: #dc3545;
}

/* Açık Hesap Ödemeleri Tablosu */
.acik-hesap-odemeler-liste {
    overflow-x: auto;
    margin-bottom: 15px;
}

.acik-hesap-odemeler-liste .tablo-mini {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.acik-hesap-odemeler-liste .tablo-mini thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.acik-hesap-odemeler-liste .tablo-mini th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
}

.acik-hesap-odemeler-liste .tablo-mini td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.acik-hesap-odemeler-liste .tablo-mini tbody tr:hover {
    background: #f8f9fa;
}

.acik-hesap-odemeler-liste .tablo-mini tfoot {
    background: #f0f0f0;
    font-weight: 600;
}

.acik-hesap-odemeler-liste .tablo-mini tfoot td {
    padding: 12px 15px;
    border-top: 2px solid #ddd;
}

.acik-hesap-bilgi {
    background: #e3f2fd;
    color: #1565c0;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.acik-hesap-bilgi i {
    font-size: 1rem;
}

/* Açık Hesaba Atanan Adisyonlar Tablosu */
.acik-hesap-atanan-liste {
    overflow-x: auto;
    margin-bottom: 15px;
}

.acik-hesap-atanan-liste .tablo-mini {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.acik-hesap-atanan-liste .tablo-mini thead {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.acik-hesap-atanan-liste .tablo-mini th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
}

.acik-hesap-atanan-liste .tablo-mini td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.acik-hesap-atanan-liste .tablo-mini tbody tr:hover {
    background: #fff8e1;
}

.acik-hesap-atanan-liste .tablo-mini tfoot {
    background: #fef3e2;
    font-weight: 600;
}

.acik-hesap-atanan-liste .tablo-mini tfoot td {
    padding: 12px 15px;
    border-top: 2px solid #f39c12;
}

.acik-hesap-uyari {
    background: #fff3cd;
    color: #856404;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ffc107;
}

.acik-hesap-uyari i {
    font-size: 1rem;
    color: #e67e22;
}

.detay-section h5 i {
    margin-right: 8px;
    color: #667eea;
}

.filter-panel-modern {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.filter-input {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.filter-input:focus {
    outline: none;
    border-color: #007bff;
}

.pagination-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
}

.pagination-btn {
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.pagination-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .statistics-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .payment-methods-grid,
    .cancellation-info-grid,
    .report-body,
    .detay-grid,
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination-modern {
        flex-direction: column;
    }
}

