@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

/* General & Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #f8f9fa;
    color: #495057;
    line-height: 1.6;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    font-size: 2.25rem;
    color: #343a40;
}

.subtitle {
    color: #6c757d;
}

/* Header */
header {
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: #343a40;
    font-size: 1.5rem;
    font-weight: 700;
}

header nav span {
    margin-right: 1rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: #3652e1;
    border-color: #3652e1;
}
.btn-primary:hover {
    background-color: #2b42b4;
}
.btn-block {
    display: block;
    width: 100%;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}
.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.back-btn {
    background-color: #e9ecef;
    color: #495057;
}
.back-btn:hover {
    background-color: #dae0e5;
}

.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: #dc3545;
}

/* Cards */
.card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #343a40;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group button {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
}

.form-group input:focus {
    color: #495057;
    background-color: #fff;
    border-color: #8b9be0;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(54, 82, 225, 0.25);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    align-items: center;
}

.form-actions button {
    flex-grow: 1;
}

.form-actions form {
    flex-grow: 1;
    margin: 0;
}

/* Auth Page Specific */
.auth-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 450px;
    margin: 4rem auto;
}
.tabs {
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}
.tab-link {
    background: none; border: none; padding: 10px 15px; cursor: pointer;
    font-size: 1rem; color: #495057;
}
.tab-link.active {
    border-bottom: 3px solid #3652e1;
    font-weight: 700; color: #3652e1;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Alert Messages */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

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

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

/* Dashboard Page */
.summary-section { display: flex; gap: 20px; margin-bottom: 2rem; }
.summary-card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); flex-grow: 1; text-align: center; }
.summary-card p { font-size: 2rem; font-weight: bold; color: #3652e1; }
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 20px; }
.job-card { 
    background: #fff; 
    padding: 20px; 
    border-radius: 8px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.job-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.job-card-actions .btn {
    flex-grow: 1;
}

/* Job Tracker Page Layout */
.main-title-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.page-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.left-column {
    position: sticky;
    top: 20px;
}

/* Job Tracker - Right Column */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.summary-box {
    padding: 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
}

.summary-box span {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.summary-box strong {
    font-size: 2.5rem;
    font-weight: 700;
}

.summary-box-green {
    background-color: #e6f9f0;
    color: #0d6b3a;
}
.summary-box-blue {
    background-color: #e7eafb;
    color: #3652e1;
}

.weekly-entries-card .card-title {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.entries-table {
    width: 100%;
    border-collapse: collapse;
}

.entries-table th,
.entries-table td {
    padding: 1rem 0;
    text-align: left;
}

.entries-table thead th {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.875rem;
}

.entries-table tbody tr {
    border-bottom: 1px solid #e9ecef;
}
.entries-table tbody tr:last-child {
    border-bottom: none;
}
.entries-table td:nth-child(2),
.entries-table td:nth-child(3) {
    font-weight: 600;
}
.entries-table td:last-child {
    text-align: right;
}

.weekly-totals {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    border-top: 2px solid #e9ecef;
    margin-top: 1rem;
    padding-top: 1rem;
    text-align: right;
}

.weekly-totals div {
    display: flex;
    flex-direction: column;
}
.weekly-totals span {
    font-size: 0.875rem;
    color: #6c757d;
}
.weekly-totals strong {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Modal */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.4); }
.modal-content { background-color: #fff; margin: 10% auto; padding: 2rem; border: 1px solid #e9ecef; width: 80%; max-width: 500px; border-radius: 0.5rem; position: relative; }
.close-button { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }

/* Responsive */
@media (max-width: 992px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
    .left-column {
        position: static;
    }
}
@media (max-width: 768px) {
    .main-title-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Optional text style */
.time-inputs-container {
    padding: 1rem;
    border: 1px dashed #ccc;
    border-radius: 8px;
    margin-top: 1rem;
    position: relative;
}

.optional-text {
    position: absolute;
    top: -10px;
    left: 10px;
    background-color: #fff;
    padding: 0 5px;
    font-size: 0.8em;
    color: #6c757d;
}

/* Welcome Page Styles */
.welcome-container {
    text-align: center;
    padding: 80px 20px;
    max-width: 700px;
    margin: 4rem auto;
}

.welcome-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 1rem;
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
}

/* New Welcome Page Sections */
.hero-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.features-section {
    padding: 4rem 0;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 5rem;
}

.feature-card.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #343a40;
}

.feature-image {
    flex: 1;
}

.feature-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.cta-section {
    background-color: #3652e1;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .btn {
    background-color: #fff;
    color: #3652e1;
}

/* Specific adjustment for narrow images */
.feature-card-narrow .feature-image {
    text-align: center;
}

.feature-card-narrow .feature-image img {
    max-width: 60%;
} 