/* ChriSwim Journal Custom Styles */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Cards */
.card {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 2rem 0 rgba(58, 59, 69, 0.2);
}

.card-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Buttons */
.btn {
    border-radius: 0.35rem;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.75rem rgba(102, 126, 234, 0.4);
}

/* Forms */
.form-control {
    border-radius: 0.35rem;
    border: 1px solid #d1d3e2;
    font-size: 0.875rem;
    padding: 0.75rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

/* Progress Bars */
.progress {
    border-radius: 0.25rem;
    background: #e3e6f0;
}

.progress-bar {
    border-radius: 0.25rem;
    transition: width 0.6s ease;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5em 0.75em;
    line-height: 1.2;
}

/* Navbar badges need to be more visible */
.navbar .badge {
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
    font-weight: 500;
}

/* Club management badges */
.badge.bg-success, .badge.bg-warning, .badge.bg-info {
    font-size: 0.8rem;
    padding: 0.4em 0.8em;
    font-weight: 600;
    text-shadow: none;
}

/* Ensure proper contrast for badge colors */
.badge.bg-info {
    background-color: #17a2b8 !important;
    color: white !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.badge.bg-success {
    background-color: #28a745 !important;
    color: white !important;
}

.badge.bg-dark {
    background-color: #343a40 !important;
    color: white !important;
}

/* RPE Colors */
.rpe-1, .rpe-2 { background-color: var(--success-color) !important; }
.rpe-3, .rpe-4 { background-color: var(--info-color) !important; }
.rpe-5, .rpe-6 { background-color: var(--warning-color) !important; }
.rpe-7, .rpe-8, .rpe-9, .rpe-10 { background-color: var(--danger-color) !important; }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

/* Loading States */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); }