/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    background-color: #f8f9fa;
    color: #2d3436;
}

/* Navigation styles */
header {
    background: #ffffff;
    color: #2d3436;
    padding: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav a {
    color: #2d3436;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #00b894;
}

.right-nav a {
    color: #777;
    margin-left: auto;
    margin-right: 1.2rem;
}

.right-nav a:hover {
    color: #00b894;
}

/* Container styles */
.container {
    width: 95%;
    max-width: 1400px;
    margin: auto;
    padding: 2rem;
}

/* Login container styles */
.login-container {
    max-width: 450px;
    margin: 100px auto;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: none;
}

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

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

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.errors {
    background-color: #ffebee;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.error {
    color: #c62828;
    margin: 0;
}

.message {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #F6E078;
    border-radius: 4px;
    text-align: center;
    color: #2d3436;
    border-top: 4px solid #C57EAF;
    text-transform: uppercase;
    font-weight: 600;
}


/* Button styles */
.btn,
.btn-primary,
.btn-small,
button {
    background-color: #797979;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(45, 52, 54, 0.1);
    text-decoration: none;
    line-height: 1.2em;
    font-size: 16px;
}

.btn,
.btn-primary {
    padding: 0.6rem 1.25rem;
}

.btn-small {
    background-color: #f6f6f6;
    color: #2d3436;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-tiny {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background-color: #f6f6f6;
    color: #2d3436;
}

.btn:hover,
.btn-primary:hover,
.btn-small:hover {
    background-color: #fff;
    color: #2d3436;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(45, 52, 54, 0.2);
}

/* Table styles */
table {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-collapse: collapse;
    width: 100%;
}

th, td {
    padding: 0.75rem;
    border: 1px solid #edf2f7;
    font-size: 0.875rem;
    line-height: 1.25;
}

th {
    background: #f7fafc;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #4a5568;
}

/* Error message styles */
.error {
    color: #e74c3c;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Headings */
h2 {
    color: #2d3436;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

/* Links */
a {
    color: #037962;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #00a085;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.text-center {
    text-align: center;
}

.task-filters {
    margin-bottom: 1rem;
}

.task-filters select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
}

.filters-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: #666;
}

.filter-select {
    min-width: 200px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.alert-info {
    background-color: #e1f5fe;
    color: #0277bd;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-in_progress {
    background-color: #cce5ff;
    color: #004085;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.text-muted {
    color: #6c757d;
    line-height: 1.25;
}

/* Optional: Add hover effect to rows */
.task-row td {
    transition: background-color 0.2s ease;
}
.task-row:hover td {
    background-color: #fff4be;
}

/* Optional: Add zebra striping */
.data-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.15s ease-in-out;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.inline-field input[type="checkbox"] {
    float: left;
    width: 15px;
    height: 15px;
    margin-top: 7px;
}

.inline-field label {
    float: left;
    margin-left: 0.5rem;
    width: auto;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: flex;
    margin-right: -15px;
    margin-left: -15px;
}

.form-row > .form-group {
    padding-right: 15px;
    padding-left: 15px;
    flex: 1;
}

.form-control {
    display: block;
    width: 100%;
}

/* Error styling */
.errors {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.error {
    color: #721c24;
    margin: 0.25rem 0;
}

.task-edit-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .task-edit-container {
        grid-template-columns: 1fr;
    }
}

.comments-section {
    background: #f8f9fa;
    border-radius: 4px;
}

.comment-form {
    margin-bottom: 2rem;
}

.comments-list {
    max-height: 500px;
    overflow-y: auto;
}

.comment {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.comment-date {
    color: #6c757d;
}

.comment-body {
    padding-top: 0.5rem;
}

-comments {
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.bulk-task-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-instructions {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.form-instructions ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.form-instructions li {
    margin-bottom: 0.5rem;
    color: #666;
}

.header-buttons {
    display: flex;
    gap: 1rem;
}

/* Update the existing textarea styles */
textarea.form-control {
    font-family: monospace;
    line-height: 1.5;
}

/* Pagination styles for displaying page numbers and navigation */
.pagination {
    float: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    margin-bottom: 5px;
}

.pagination-info {
    color: #666;
    font-size: 0.8rem;
}

.pagination-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.25rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    background: white;
    font-size: 0.8rem;
}

.pagination-link:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.pagination-link.current {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    cursor: default;
}

.pagination-ellipsis {
    color: #666;
    padding: 0 0.25rem;
    font-size: 0.8rem;
}

/* Optional: Add responsive styles */
@media (max-width: 768px) {
    .pagination {
        float: none;
        align-items: center;
    }
    
    .pagination-info {
        text-align: center;
    }

    .pagination-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Dashboard Styles */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0.5rem 0;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.stat-card.clients { background-color: #e3f2fd; }
.stat-card.open-tasks { background-color: #fff3e0; }
.stat-card.completed { background-color: #e8f5e9; }

.quick-actions {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    float: left;
}

.tasks-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions, .tasks-section {
        padding: 1rem;
    }
}

/* Sortable table styles */
.sort-header {
    color: inherit;
    text-decoration: none;
    display: block;
    position: relative;
    padding-right: 15px;
}

.sort-header:hover {
    color: #0056b3;
    text-decoration: none;
}

.data-table th {
    position: relative;
    cursor: pointer;
}

.data-table th:hover {
    background-color: rgba(0, 0, 0, 0.05);
}



#the-timeline {
    display: block;
    clear: both;
    margin: 20ppx 0;
}