/**
 * FLB Owners Portal - Custom Styles
 * Based on Four Legged Breaks brand colors
 */

:root {
    --primary-color: #44a054;
    --primary-dark: #1a7ab8;
    --secondary-color: #f8f9fa;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --primary-button-color: #e3d665;
    --primary-button-hover-color: #c4b145;
    --primary-button-text-color: #212529;

}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
}

/* Test Mode Banner */
.test-mode-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 8px 0;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.test-mode-banner i {
    margin-right: 8px;
}

/* Header Styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .nav-link {
    color: #d4f1d4 !important;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover {
    color: #ffffff !important;
}

.navbar .navbar-brand {
    color: #ffffff !important;
}

/* Primary Button */
.btn-primary {
    background-color: var(--primary-button-color);
    border-color: var(--primary-button-color);
    color: var(--primary-button-text-color);
    font-weight: 500;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-button-hover-color);
    border-color: var(--primary-button-hover-color);
    color: var(--primary-button-text-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 153, 221, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 153, 221, 0.3);
}

/* Card Styles */
.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.card-header {
    background-color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
    font-size: 1.25rem;
}

/* Form Styles */
.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 12px;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(34, 153, 221, 0.25);
}

.form-control.error {
    border-color: var(--danger-color);
}

label.error {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Alert Styles */
.alert {
    border-radius: 6px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-info {
    background-color: #e7f5ff;
    color: #0c5689;
}

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

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

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

/* Auth Pages Container */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.auth-card {
    max-width: 500px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-light);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
}

.password-strength-bar {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.password-strength-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-text {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* MFA Code Input */
.mfa-code-input {
    font-size: 2rem;
    text-align: center;
    letter-spacing: 0.5rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
    color: var(--text-light);
    text-align: center;
}

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

.footer a:hover {
    text-decoration: underline;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Account Dashboard */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        padding: 20px 15px;
    }

    .mfa-code-input {
        font-size: 1.5rem;
        letter-spacing: 0.3rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Link Styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Table Styles */
.table {
    background-color: white;
}

.table thead th {
    background-color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}
