/**
 * PayTR Ödeme Yönetim Paneli - Stylesheet
 * Facebook Blue Theme
 */

/* ===== CSS Variables ===== */
:root {
    --primary: #1877F2;
    --primary-dark: #166FE5;
    --primary-light: #E7F3FF;
    --primary-hover: #1464CC;
    
    --success: #31A24C;
    --success-light: #E6F4EA;
    --danger: #FA383E;
    --danger-light: #FFEBE9;
    --warning: #F7B928;
    --warning-light: #FFF8E6;
    --info: #1877F2;
    --info-light: #E7F3FF;
    
    --text-dark: #1C1E21;
    --text-muted: #65676B;
    --text-light: #8A8D91;
    
    --bg-body: #F0F2F5;
    --bg-white: #FFFFFF;
    --bg-hover: #F2F2F2;
    
    --border-color: #DADDE1;
    --border-light: #E4E6EB;
    
    --sidebar-width: 260px;
    --header-height: 60px;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --transition: all 0.2s ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-body);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* ===== Login Page ===== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 20px;
}

.login-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

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

.login-logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.login-logo p {
    color: var(--text-muted);
    margin-top: 5px;
}

/* ===== Layout ===== */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: var(--transition);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.sidebar-logo span {
    color: var(--text-muted);
    font-weight: 400;
}

.sidebar-nav {
    padding: 15px 10px;
}

.nav-section {
    margin-bottom: 20px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 10px 15px 5px;
    letter-spacing: 0.5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-dark);
    border-radius: var(--radius-md);
    margin-bottom: 2px;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-dark);
}

.nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}

.nav-link i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
}

.nav-link .badge {
    margin-left: auto;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Header ===== */
.header {
    height: var(--header-height);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.header-user:hover {
    background: var(--bg-hover);
}

.header-user-info {
    text-align: right;
}

.header-user-name {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-dark);
}

.header-user-role {
    font-size: 11px;
    color: var(--text-muted);
}

.header-user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

/* ===== Content Area ===== */
.content {
    flex: 1;
    padding: 25px;
}

/* ===== Cards ===== */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.card-body {
    padding: 20px;
}

/* ===== Stat Cards ===== */
.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card.pure {
    border-left: 4px solid var(--primary);
}

.stat-card.graffe {
    border-left: 4px solid var(--success);
}

.stat-card.pending {
    border-left: 4px solid var(--warning);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px;
}

.stat-card.pure .stat-icon {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-card.graffe .stat-icon {
    background: var(--success-light);
    color: var(--success);
}

.stat-card.pending .stat-icon {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== Tables ===== */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
    padding: 12px 15px;
    white-space: nowrap;
}

.table td {
    padding: 12px 15px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
}

.table tbody tr:hover {
    background: var(--bg-hover);
}

.table-responsive {
    border-radius: var(--radius-md);
}

/* ===== Buttons ===== */
.btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn i {
    font-size: 14px;
}

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

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

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

.btn-success:hover {
    background: #2a8f42;
    color: white;
}

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

.btn-danger:hover {
    background: #e02e33;
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: var(--text-dark);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-dark);
}

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

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

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

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* ===== Forms ===== */
.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-control, .form-select {
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.input-group-text {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* ===== Badges ===== */
.badge {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50px;
}

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

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

.badge.bg-warning {
    background: var(--warning-light) !important;
    color: #b38600;
}

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

.badge.bg-secondary {
    background: var(--bg-hover) !important;
    color: var(--text-muted);
}

/* ===== Alerts ===== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 14px;
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.alert-warning {
    background: var(--warning-light);
    color: #8a6d00;
}

.alert-info {
    background: var(--info-light);
    color: var(--primary);
}

/* ===== Dropdown ===== */
.dropdown-menu {
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    padding: 8px;
}

.dropdown-item {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--bg-hover);
}

.dropdown-item i {
    width: 20px;
    margin-right: 8px;
}

/* ===== Modal ===== */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-light);
    padding: 16px 20px;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid var(--border-light);
    padding: 16px 20px;
}

/* ===== Pagination ===== */
.pagination {
    gap: 5px;
}

.page-link {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    color: var(--text-dark);
}

.page-link:hover {
    background: var(--bg-hover);
    border-color: var(--border-color);
}

.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

.page-item.disabled .page-link {
    background: var(--bg-hover);
    color: var(--text-light);
}

/* ===== Filter Bar ===== */
.filter-bar {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.filter-bar .row {
    align-items: flex-end;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state h5 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* ===== Refresh Button ===== */
.btn-refresh {
    background: var(--primary-light);
    color: var(--primary);
    border: none;
}

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

.btn-refresh.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Store Indicator ===== */
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

.store-badge.pure {
    background: var(--primary-light);
    color: var(--primary);
}

.store-badge.graffe {
    background: var(--success-light);
    color: var(--success);
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header {
        padding: 0 15px;
    }
    
    .content {
        padding: 15px;
    }
}

@media (max-width: 767px) {
    .stat-card {
        margin-bottom: 15px;
    }
    
    .filter-bar .col-md-3,
    .filter-bar .col-md-2 {
        margin-bottom: 10px;
    }
    
    .table-responsive {
        font-size: 13px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ===== Utility Classes ===== */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--text-muted) !important; }

.bg-primary-light { background: var(--primary-light) !important; }
.bg-success-light { background: var(--success-light) !important; }
.bg-danger-light { background: var(--danger-light) !important; }
.bg-warning-light { background: var(--warning-light) !important; }

.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.cursor-pointer { cursor: pointer; }

