/* pokermgr.io — House Style overrides */

:root {
    --bs-body-bg: #1c2333;
    --bs-body-bg-rgb: 28, 35, 51;
    --bs-border-radius: 0.75rem;
    --bs-border-radius-lg: 1rem;
    --bs-btn-border-radius: 2rem;
    --bs-btn-padding-x: 1.25rem;
    --bs-border-color: #2d3548;
}

.btn-sm {
    --bs-btn-border-radius: 2rem;
}

html, body {
    background: #1c2333;
    color: #e6edf3;
}

/* ── Navbar ────────────────────────────────────────── */
.navbar {
    background: #232b3d !important;
    border-bottom: 1px solid #2d3548 !important;
}

/* ── Footer ────────────────────────────────────────── */
footer {
    background: #232b3d !important;
    border-top: 1px solid #2d3548 !important;
}

/* ── Buttons ───────────────────────────────────────── */
.btn-success, .btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}
.btn-success:hover, .btn-primary:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-outline-info {
    border-color: rgba(6, 182, 212, 0.5);
}
.btn-outline-info:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: #06b6d4;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

.btn-outline-danger {
    border-color: rgba(239, 68, 68, 0.5);
}
.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

.btn-secondary {
    background: #2d3548;
    border: 1px solid #3a4358;
    color: #c9d1d9;
}
.btn-secondary:hover {
    background: #3a4358;
    border-color: #4a556e;
    color: #f0f6fc;
}

.btn-outline-secondary {
    border-color: rgba(201, 209, 217, 0.3);
    color: #c9d1d9;
}
.btn-outline-secondary:hover {
    background: rgba(201, 209, 217, 0.1);
    border-color: #c9d1d9;
    color: #f0f6fc;
}

.btn-outline-light {
    border-color: rgba(230, 237, 243, 0.25);
    color: #e6edf3;
}
.btn-outline-light:hover {
    background: rgba(230, 237, 243, 0.08);
    border-color: rgba(230, 237, 243, 0.5);
    color: #fff;
}

/* ── Cards ─────────────────────────────────────────── */
.card {
    background: #232b3d;
    border: 1px solid #2d3548;
    border-left: 3px solid transparent;
    transition: transform 0.15s, box-shadow 0.15s;
}
.card.border-success { border-left-color: #10b981; }
.card.border-info    { border-left-color: #06b6d4; }
.card.border-warning { border-left-color: #f59e0b; }
.card.border-danger  { border-left-color: #ef4444; }

a.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    color: inherit;
}

/* ── Inputs ────────────────────────────────────────── */
.form-control,
.form-select {
    background: #1c2333;
    border: 2px solid #2d3548;
    border-radius: 0.5rem;
    color: #e6edf3;
}
.form-control:focus,
.form-select:focus {
    background: #1c2333;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    color: #e6edf3;
}
.form-control::placeholder {
    color: #6e7681;
}

/* ── Input group text ── */
.input-group-text {
    background: #232b3d;
    border: 2px solid #2d3548;
    color: #8b949e;
}

/* ── Modal ── */
.modal-content {
    background: #232b3d;
    border: 1px solid #2d3548;
}
.modal-header {
    border-bottom: 1px solid #2d3548;
}
.modal-footer {
    border-top: 1px solid #2d3548;
}

/* ── Hero button ───────────────────────────────────── */
.btn-hero {
    padding: 0.85rem 2.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 3rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #fff;
    box-shadow: 0 4px 24px rgba(16, 185, 129, 0.3);
    transition: all 0.2s;
}
.btn-hero:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 6px 32px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
    color: #fff;
}

/* ── Tables ────────────────────────────────────────── */
.table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(255,255,255,0.03);
    --bs-table-border-color: #30363d;
    table-layout: fixed;
}
.table thead th {
    border-bottom: 2px solid #2d3548;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8b949e;
    padding: 0.6rem 0.75rem;
}
.table tbody td {
    padding: 0.55rem 0.75rem;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
}
.table tbody tr:hover {
    background: rgba(16, 185, 129, 0.04) !important;
}

/* ── Action icons in list rows ── */
.action-icon {
    cursor: pointer;
    transition: opacity 0.15s;
}
.list-row:hover .action-icon {
    opacity: 0.7;
}
.action-icon:hover {
    opacity: 1 !important;
}

/* ── Deal calculator — payout cell accent ── */
.deal-payout-cell {
    background: rgba(16, 185, 129, 0.08);
}

/* Edit area inline */
.edit-area {
    border-bottom: 1px solid #2d3548;
}

/* ── Docs page ─────────────────────────────────────── */
.docs-content h1 {
    color: #16B586;
    border-bottom: 1px solid #2d3548;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}
.docs-content h2 {
    color: #06b6d4;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}
.docs-content h3 {
    color: #f59e0b;
    margin-top: 1.5rem;
    font-size: 1.1rem;
}
.docs-content p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}
.docs-content pre {
    background: #111827;
    border: 1px solid #2d3548;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}
.docs-content code {
    color: #f59e0b;
    font-size: 0.875rem;
}
.docs-content pre code {
    color: #e6edf3;
}
.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background: #1c2333;
    border: 1px solid #2d3548;
    border-radius: 0.5rem;
}
.docs-content th,
.docs-content td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #2d3548;
    text-align: left;
}
.docs-content th {
    background: #232b3d;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8b949e;
}
.docs-content tr:last-child td {
    border-bottom: none;
}
.docs-content ul,
.docs-content ol {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}
.docs-content li {
    margin-bottom: 0.25rem;
}
.docs-content hr {
    border-color: #2d3548;
    margin: 1.5rem 0;
}
.docs-content strong {
    color: #e6edf3;
}
