/* PSP Merchant Cabinet Styles */

:root {
    --sidebar-width: 250px;
    --topbar-height: 56px;
    --primary-color: #0d6efd;
    --sidebar-bg: #f8f9fa;
    --sidebar-border: #e9ecef;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f0f2f5;
    min-height: 100vh;
}

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

.sidebar-brand {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--sidebar-border);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    text-decoration: none;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav .nav-item {
    margin: 0 0.75rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.75rem;
    color: #495057;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    transition: all 0.15s;
    text-decoration: none;
}

.sidebar-nav .nav-link:hover {
    background-color: #e9ecef;
    color: #212529;
}

.sidebar-nav .nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
}

.sidebar-nav .nav-link svg {
    margin-right: 0.6rem;
    flex-shrink: 0;
}

/* Top bar */
.topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--topbar-height);
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1.5rem;
    z-index: 999;
}

/* Main content */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--topbar-height);
    padding: 1.5rem;
    min-height: calc(100vh - var(--topbar-height));
}

/* Cards */
.stat-card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.15s;
}

.stat-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.stat-card .card-body {
    padding: 1.25rem;
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tables */
.table-card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

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

/* Status badges */
.badge-status-completed { background-color: #198754; }
.badge-status-pending { background-color: #ffc107; color: #212529; }
.badge-status-processing { background-color: #0dcaf0; color: #212529; }
.badge-status-failed { background-color: #dc3545; }
.badge-status-cancelled { background-color: #6c757d; }

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

.login-card {
    width: 100%;
    max-width: 420px;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.login-card .card-body {
    padding: 2.5rem;
}

/* API key display */
.api-key-display {
    font-family: 'Courier New', monospace;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    word-break: break-all;
    font-size: 0.85rem;
}

/* Filter bar */
.filter-bar {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
}
