
/* Custom styles for FML - Farewell Manual Labor - Light/Dark Theme */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4264D7;
    --secondary-color: #000000;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --card-header-bg: #f8f9fa;
    --text-color: #000000;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --input-bg: #ffffff;
    --input-border: #ced4da;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    
    /* Override Bootstrap card border variables */
    --bs-card-border-width: 0;
    --bs-card-border-color: transparent;
}

/* Dark theme variables */
[data-bs-theme="dark"] {
    --primary-color: #4264D7;
    --secondary-color: #ffffff;
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --card-header-bg: #3c3c3c;
    --text-color: #ffffff;
    --text-muted: #adb5bd;
    --border-color: #495057;
    --input-bg: #2d2d2d;
    --input-border: #495057;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.5);
}

/* Remove border-secondary styling */
.border-secondary {
    border: none !important;
}

.card.border-secondary {
    border: none !important;
}

* {
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.6;
}

/* Smaller font size for How it works section */
.how-it-works {
    font-size: 13px;
}

.how-it-works ul {
    font-size: 13px;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.card {
    box-shadow: var(--shadow);
    border: none;
    border-radius: 0.75rem !important;
    background-color: var(--card-bg);
}

.card-header {
    background-color: var(--card-header-bg);
    border-bottom: none;
    color: var(--text-color);
}

.progress {
    height: 0.5rem;
}

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

.btn-primary:hover {
    background-color: #000000;
    border-color: #000000;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--bg-color);
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: #000000;
    border-color: #000000;
    color: white;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 16px;
    font-weight: 500;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.alert {
    border: none;
    border-radius: 0.375rem;
    font-size: 15px;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.alert-info {
    background-color: #d1ecf1;
    color: #055160;
    border: 1px solid #bee5eb;
}

.form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-color);
    font-size: 15px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(66, 100, 215, 0.25);
    background-color: var(--input-bg);
}

.form-label {
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
}

.form-check-label {
    color: var(--text-color);
    font-size: 15px;
}

.form-text {
    color: var(--text-muted);
    font-size: 14px;
}

.card.bg-light {
    background-color: var(--card-header-bg) !important;
    color: var(--text-color);
    border: none;
}

.text-muted {
    color: var(--text-muted) !important;
}

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

.text-success {
    color: #198754 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

/* File input styling */
.form-control[type="file"] {
    padding: 0.5rem 0.75rem;
    background-color: var(--input-bg);
}

/* Icon sizing */
.feather {
    width: 1em;
    height: 1em;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Progress bar */
.progress-bar {
    background-color: var(--primary-color);
}

/* Card title styling */
.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.card-text {
    font-size: 15px;
    color: var(--text-color);
}

.card-text.small {
    font-size: 14px;
    color: var(--text-muted);
}

/* Theme toggle button */
#themeToggle {
    border: 1px solid var(--border-color);
    color: var(--text-color);
    background-color: transparent;
    transition: all 0.3s ease;
}

#themeToggle:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

#themeToggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(66, 100, 215, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 15px;
    }
    
    h1, h2, h3, h4, h5, h6 {
        font-size: 18px;
    }
    
    .card-header .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .card-header .d-flex h1 {
        text-align: center;
    }
}

/* Button focus states */
.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(66, 100, 215, 0.25);
}

/* List styling */
ul {
    font-size: 15px;
}

li {
    margin-bottom: 0.25rem;
}

/* Link styling */
a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: #3651c4;
    text-decoration: underline;
}

/* Remove underline from buttons that are links */
a.btn {
    text-decoration: none !important;
}

a.btn:hover {
    text-decoration: none !important;
}

/* Fix Convert Another File button hover */
a.btn-secondary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}
