/* Common styles for YMCA Certification Management System */

:root {
    --primary-gradient: linear-gradient(135deg, #A8052B 0%, #303030 100%);
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --border-radius: 15px;
    --card-shadow: 0 15px 35px rgba(0,0,0,0.1);
    --focus-color: #667eea;
    --focus-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Body and layout */
body {
    min-height: 100vh;
}

/* Login/auth pages get gradient background and center alignment */
body.auth {
    background: #E6E7E8;
    display: flex;
    align-items: center;
}

/* Dashboard gets light background */
body.dashboard {
    background-color: #f8f9fa;
}

/* Common card styles */
.app-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.app-card-header {
    background: var(--primary-gradient);
    color: white;
    padding: 2rem;
    text-align: center;
}

.app-card-body {
    padding: 2rem;
}

/* Form controls */
.form-control:focus {
    border-color: var(--focus-color);
    box-shadow: var(--focus-shadow);
}

.search-input {
    font-size: 1.1rem;
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--focus-color);
    box-shadow: var(--focus-shadow);
}

/* Buttons */
.btn-app {
    background: var(--primary-gradient);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    color: white;
}

.btn-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Modal styles */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Alerts and notifications */
.alert {
    border-radius: 8px;
}

.alert i {
    margin-right: 0.5rem;
}

/* Navbar */
.navbar-custom {
    background: var(--primary-gradient);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Password requirements */
.password-requirements {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.password-requirements ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.password-requirements li {
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.password-requirements li.text-success {
    font-weight: 500;
}

.password-strength-meter {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}

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

/* Input group enhancements */
.input-group .btn {
    border-left: 0;
}

.input-group .form-control:focus + .btn {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Loading spinner */
.loading-spinner {
    display: none;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

/* Logo styles */
.logo-login {
    height: 48px;
    width: auto;
}

.logo-navbar {
    height: 40px;
    width: auto;
    margin-right: 8px;
}

.logo-heading {
    height: 20px;
    width: auto;
    margin-right: 6px;
}

.logo-modal {
    height: 18px;
    width: auto;
    margin-right: 6px;
}

.logo-button {
    height: 16px;
    width: auto;
    margin-right: 4px;
}

/* Utility classes */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-card-header,
    .app-card-body {
        padding: 1.5rem;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 12px 16px;
    }
}