/* ============================================
 * E-Learning BenFit - Stylesheet
 * ============================================ */

/* === Basis === */
body {
    background: #f8f9fa;
    min-height: 100vh;
}

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

body.page-form {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

/* === Language Switcher === */
.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.language-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 20px;
    border-radius: 3px;
    overflow: hidden;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    text-decoration: none;
}

.language-switcher a:hover {
    opacity: 1;
    transform: scale(1.1);
}

.language-switcher a.active {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
}

.language-switcher img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === Navbar === */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.navbar-brand {
    font-weight: 600;
}

/* === Main Content === */
.main-content {
    padding: 30px 0;
}

/* === Module Cards === */
.module-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

.module-card.disabled {
    opacity: 0.6;
}

.module-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* === Buttons === */
.btn-module {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.btn-module:hover {
    color: white;
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}

.btn-certificate {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.btn-certificate:hover {
    color: white;
    background: linear-gradient(135deg, #0e8377 0%, #2ed36b 100%);
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    width: 100%;
    padding: 12px;
    font-weight: 600;
}

.btn-login:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}

/* === Welcome Section === */
.welcome-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* === Certificate Cards === */
.certificate-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* === Certificate Count Badge === */
.cert-count {
    display: inline-flex;
    align-items: center;
    background: #e8f4fd;
    color: #0d6efd;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.cert-count i {
    margin-right: 5px;
}

/* === Login Card === */
.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    margin: 0;
}

.forgot-link {
    text-align: center;
    margin-top: 20px;
}

.forgot-link a {
    color: #667eea;
    text-decoration: none;
}

.forgot-link a:hover {
    text-decoration: underline;
}

/* === Content Card (Neutral Pages) === */
.content-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 40px;
    width: 100%;
    max-width: 500px;
}

.content-header {
    text-align: center;
    margin-bottom: 30px;
}

.content-header h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

/* === Form Card (Certificate Request) === */
.form-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.card-header-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.card-header-custom i {
    font-size: 48px;
    margin-bottom: 15px;
}

.card-body-custom {
    padding: 30px;
}

.training-badge {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
}

/* === Option Cards (Checkboxes) === */
.option-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-card:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.option-card.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

.option-card input[type="checkbox"] {
    transform: scale(1.2);
}

/* === Verification Card === */
.verification-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
}

.result-valid {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.result-valid .icon {
    font-size: 60px;
    color: #28a745;
}

.result-invalid {
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.result-invalid .icon {
    font-size: 60px;
    color: #dc3545;
}

.result-pending {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.result-pending .icon {
    font-size: 60px;
    color: #ffc107;
}

.cert-details {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.cert-details dt {
    color: #666;
    font-weight: normal;
    font-size: 0.85rem;
}

.cert-details dd {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

/* === Form Controls === */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
}

.alert {
    border-radius: 10px;
}

/* === Footer === */
footer {
    padding: 20px 0;
    text-align: center;
    color: #6c757d;
}

footer small {
    font-size: 0.875rem;
}
