/* Main Stylesheet for Survey Application - BaoAfrik Brand Theme */

:root {
    --primary: #FF7700;     /* Orange - primary brand color */
    --primary-dark: #E66D00; /* Darker orange for hover states */
    --primary-light: #FFA64D; /* Lighter orange for backgrounds */
    --white: #FFFFFF;      /* White */
    --light: #F8F9FA;      /* Light background */
    --dark: #333333;       /* Dark text */
    --gray: #6C757D;       /* Gray text */
    --gray-light: #E9ECEF; /* Light gray backgrounds */
    --success: #28A745;    /* Green for success messages */
    --danger: #DC3545;     /* Red for error messages */
    --warning: #FFC107;    /* Yellow for warnings */
    --info: #17A2B8;       /* Blue for info */
}

/* General styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

/* Header styles */
header {
    background-color: var(--white) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    color: var(--primary);
}

.brand-logo {
    height: 50px;
    margin-right: 15px;
}

.brand-text {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0;
}

/* Card styles */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card-header {
    border-bottom: none;
    padding: 1.5rem;
    background-color: var(--primary) !important;
    color: var(--white) !important;
}

.card-header h2, .card-header h3, .card-header h4 {
    color: var(--white);
}

.card-body {
    padding: 2rem;
    background-color: var(--white);
}

.card-footer {
    background-color: var(--white);
    border-top: 1px solid var(--gray-light);
    padding: 1rem 2rem;
}

/* Form styles */
.form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

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

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(255, 119, 0, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Button styles */
.btn {
    border-radius: 5px;
    padding: 10px 24px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 119, 0, 0.25) !important;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--white) !important;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Survey specific styles */
.survey-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-light);
}

.survey-section:last-child {
    border-bottom: none;
}

.section-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.question-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.question-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-label {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.required-field::after {
    content: "*";
    color: var(--danger);
    margin-left: 4px;
    font-weight: bold;
}

/* Alert styles */
.alert {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-left: 4px solid #28a745;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.alert-orange {
    color: #804000;
    background-color: #ffe0cc;
    border-left: 4px solid var(--primary);
}

/* Language switcher */
.language-switcher {
    display: flex;
    align-items: center;
}

.language-switcher a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    padding: 8px;
    margin: 0 3px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.language-switcher a:hover {
    background-color: rgba(255, 119, 0, 0.1);
}

.language-switcher a.active {
    color: var(--primary);
    font-weight: bold;
    background-color: rgba(255, 119, 0, 0.15);
}

.language-switcher .flag-icon {
    width: 22px;
    height: 16px;
    margin-right: 6px;
    border: 1px solid var(--gray-light);
    border-radius: 2px;
}

/* Progress bar */
.progress {
    height: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
}

/* Language selection styling */
.language-card {
    transition: all 0.3s ease;
    border: 2px solid #e6e6e6;
    overflow: hidden;
}

.language-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 119, 0, 0.15);
}

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

.language-card h4 {
    color: var(--primary);
    margin-top: 0.5rem;
    font-weight: 600;
}

.language-card:hover h4 {
    color: var(--primary-dark);
}

.language-card:active {
    transform: translateY(0px);
    border-color: var(--primary-dark);
}

/* Footer */
footer {
    color: #6c757d;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 8px 16px;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background-color: #fff;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
}
