/* Force light mode - disable system dark mode */
:root {
    color-scheme: light only;
}

html {
    background: white !important;
    color: #333 !important;
}

body {
    background: white !important;
    color: #333 !important;
    font-family: sans-serif; 
    padding: 2rem; 
    margin: 0;
    line-height: 1.5;
} 

/* Navigation */
nav a { 
    margin-right: 1rem; 
    color: #007bff;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 12px 15px;
    margin: 5px 0;
    border-radius: 4px;
    border: 1px solid transparent;
}

.flash-message.success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

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

.flash-message.warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

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

/* Warning Messages */
.invoice-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    font-size: 0.95em;
}

/* Common Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }

/* Common Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

hr {
    border: 0;
    border-top: 1px solid #dee2e6;
    margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    nav a {
        display: block;
        margin: 0.5rem 0;
    }
} 

/* Ensure all elements inherit proper light mode colors */
* {
    color: inherit;
}

/* Minimal Form Styling for Pages Without forms.css */
input, textarea, button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin: 4px 0;
}

button {
    background: #007bff;
    color: white;
    cursor: pointer;
    border: none;
}

button:hover {
    background: #0056b3;
}

button[type="submit"] {
    background: #28a745;
}

button[type="submit"]:hover {
    background: #218838;
}

/* Basic Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

th {
    background: #f8f9fa;
    font-weight: bold;
}

/* List Styling */
ul {
    list-style-type: none;
    padding: 0;
}

li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

li:last-child {
    border-bottom: none;
}

/* Auth Container */
.auth-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #495057;
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-links a {
    display: block;
    margin: 0.5rem 0;
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Button Variants */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

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

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

/* Small Button Variant */
.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    margin: 2px;
}

/* Client/Projects Hierarchical Layout */
.client-row td {
    vertical-align: middle;
}

.client-row .btn {
    display: inline-block;
    line-height: normal;
}

.client-projects-row {
    background: #f8f9fa;
}

.client-projects-section {
    padding: 15px 15px 15px 45px;
    border-left: 3px solid #007bff;
    background: #f8f9fa;
}

.projects-header {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

.projects-header h4 {
    margin: 0;
    color: #495057;
    font-size: 1.1rem;
}

.projects-table {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin: 0;
}

.projects-table th {
    background: #e9ecef;
    font-size: 0.9rem;
    padding: 8px 12px;
}

.projects-table td {
    padding: 10px 12px;
    font-size: 0.9rem;
}

.projects-table tr:hover {
    background: #f5f5f5;
}

.no-projects {
    color: #6c757d;
    font-style: italic;
    margin: 10px 0;
}

.no-projects a {
    color: #007bff;
    text-decoration: none;
}

.no-projects a:hover {
    text-decoration: underline;
}

/* Responsive improvements for mobile */
@media (max-width: 768px) {
    .projects-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .projects-header h4 {
        text-align: center;
    }

    .client-projects-section {
        padding: 10px;
    }

    .projects-table th,
    .projects-table td {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}