* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    margin: 0;
    padding: 0 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    display: block;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.user-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.user-menu .username {
    color: #ecf0f1;
    font-weight: 500;
}

.container {
    max-width: 100%;
    margin: 2rem auto;
    padding: 0 1rem;
}

.flash-messages {
    margin-bottom: 1.5rem;
}

.flash {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

h1 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

h2 {
    margin-bottom: 1rem;
    color: #34495e;
}

/* Dashboard */
.dashboard {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.status-success {
    color: #28a745;
    font-weight: bold;
}

.status-error {
    color: #dc3545;
    font-weight: bold;
}

.quick-actions {
    margin-top: 2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Forms */
.form-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Tables */
.projects-container,
.tasks-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.projects-container.full-width,
.tasks-container.full-width {
    max-width: 100%;
    margin: 2rem 0;
    padding: 1.5rem;
}

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

.data-table.compact-table th,
.data-table.compact-table td {
    padding: 0.4rem 0.6rem;
    text-align: left;
    border: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    line-height: 1.3;
}

.data-table.compact-table thead th {
    border-bottom: 2px solid #adb5bd;
}

.data-table.compact-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table.compact-table tr:hover {
    background-color: #f8f9fa;
}

.data-table.compact-table tr.synced {
    background-color: #d4edda;
}

.data-table.compact-table .checkbox-col {
    width: 40px;
}

.data-table.compact-table .id-col {
    width: 60px;
}

.data-table.compact-table .subject-col {
    min-width: 200px;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table.compact-table .parent-col {
    width: 200px;
    min-width: 180px;
    max-width: 300px;
}

.data-table.compact-table .parent-col div {
    line-height: 1.4;
}

.data-table.compact-table .status-col {
    width: 120px;
}

.data-table.compact-table .tracker-col {
    width: 120px;
}

.data-table.compact-table .date-col {
    width: 100px;
}

.data-table.compact-table .assignee-col {
    width: 150px;
}

.data-table.compact-table .odoo-col {
    width: 100px;
}

.data-table.compact-table .actions-col {
    width: 80px;
}

.data-table.compact-table .project-col {
    width: 40%;
    min-width: 300px;
}

.data-table.compact-table .odoo-id-col {
    width: 60%;
}

.odoo-project-input {
    width: 100%;
    max-width: 400px;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.odoo-project-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.odoo-id {
    color: #28a745;
    font-weight: bold;
}

.not-synced {
    color: #6c757d;
    font-style: italic;
}

.table-wrapper {
    overflow-x: auto;
    max-width: 100%;
}

.table-info {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Filter section */
.filters-section {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.filters-form {
    width: 100%;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #2c3e50;
}

.filter-group .search-input,
.filter-group .filter-select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.filter-group .search-input:focus,
.filter-group .filter-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

/* Search section for projects */
.search-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-group {
    flex: 1;
    min-width: 300px;
}

.search-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #2c3e50;
}

.search-group .search-input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.search-group .search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.project-count {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #6c757d;
    padding-top: 1.8rem;
}

.table-controls {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.info-message {
    padding: 1rem;
    background: #d1ecf1;
    color: #0c5460;
    border-radius: 4px;
    margin-top: 1rem;
}

