/* Modern Ödeme Sistemi - Custom CSS */

/* Layout */
body {
    padding-top: 80px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-content {
    min-height: calc(100vh - 200px);
    padding-bottom: 2rem;
}

.footer {
    margin-top: auto;
}

/* Navbar */
.navbar-brand {
    font-size: 1.4rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

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

.card-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    padding: 1rem 1.5rem;
}

.card-header h5 {
    margin: 0;
    font-weight: 600;
}

/* Stat Cards */
.stat-card {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card.danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.stat-card.warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.stat-card.info {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.stat-label {
    opacity: 0.9;
    margin: 0;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

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

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    border: none;
    color: #212529;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    border: none;
}

/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.table thead th {
    background-color: #f8f9fa;
    border: none;
    font-weight: 600;
    color: #495057;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

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

/* Status Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
}

.status-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.status-warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Payment Form */
.payment-form {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 0 25px rgba(0,0,0,0.1);
}

.card-input-group {
    position: relative;
}

.card-brand-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
}

.card-number-input {
    padding-right: 50px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.expiry-input, .cvv-input {
    font-family: 'Courier New', monospace;
    text-align: center;
}

/* Bank Info Display */
.bank-info {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
    animation: fadeIn 0.3s ease-in;
}

.bank-info .bank-name {
    font-weight: bold;
    color: #1976d2;
    font-size: 1.1rem;
}

.bank-info .card-type {
    color: #555;
    font-size: 0.9rem;
}

/* Commission Display */
.commission-info {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1rem;
}

.commission-info .amount {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
}

/* Payment Result */
.payment-result {
    text-align: center;
    padding: 3rem 2rem;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.result-icon.success {
    color: #28a745;
}

.result-icon.error {
    color: #dc3545;
}

.result-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.result-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: white;
}

/* Notifications */
.notification-dropdown {
    max-height: 400px;
    overflow-y: auto;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

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

.notification-item .notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.notification-item .notification-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.notification-item .notification-time {
    font-size: 0.75rem;
    color: #adb5bd;
}

.dropdown-footer {
    padding: 0.5rem;
    background-color: #f8f9fa;
}

/* Dashboard Charts */
.chart-container {
    position: relative;
    height: 300px;
    margin: 1rem 0;
    width: 100%;
}

.chart-container canvas {
    max-height: 300px !important;
}

/* Dashboard Specific Styles */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-stats {
    margin-bottom: 2rem;
}

.dashboard-charts {
    margin-bottom: 2rem;
}

/* Loading States */
.chart-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.table-loading {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.table-loading .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
}

/* System Status */
.system-status .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

.system-status .badge i {
    font-size: 0.875rem;
    margin-right: 0.25rem;
}

/* Dashboard Responsive */
@media (max-width: 1200px) {
    .chart-container {
        height: 250px;
    }
    
    .chart-container canvas {
        max-height: 250px !important;
    }
}

@media (max-width: 768px) {
    .chart-container {
        height: 200px;
    }
    
    .chart-container canvas {
        max-height: 200px !important;
    }
    
    .dashboard-header .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Dashboard header mobile */
    .dashboard-header .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard-header .d-flex .dropdown {
        width: 100%;
    }
    
    .dashboard-header .d-flex .dropdown .btn {
        width: 100%;
        justify-content: space-between;
    }
}

/* Date Range Dropdown */
.dropdown-menu {
    min-width: 200px;
}

.dropdown-item.active {
    background-color: #007bff;
    color: white;
}

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

.dropdown-item.active:hover {
    background-color: #0056b3;
}

/* Custom Date Modal */
.modal-body .form-control {
    border-radius: 6px;
}

.modal-body .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Dashboard Actions */
.dashboard-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 576px) {
    .dashboard-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .dashboard-actions .dropdown,
    .dashboard-actions .btn {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .stat-value {
        font-size: 2rem;
    }
    
    .payment-form {
        padding: 1.5rem;
    }
    
    .card-number-input {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 70px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .result-title {
        font-size: 1.5rem;
    }
    
    .result-icon {
        font-size: 3rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    padding: 3rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.login-logo h2 {
    color: #333;
    font-weight: 700;
}
