/* CSS Variables for Theme System */
:root {
    /* Dark Theme (Default) */
    --color-bg: #0D0F12;
    --color-card: #15181D;
    --color-text-primary: #E3E8EF;
    --color-text-secondary: #A1A6B2;
    --color-divider: #1F232A;
    --color-highlight: #2FA2FF;
    --color-error: #FF4D4F;
    --color-checkbox-unchecked: #3C424E;
    --color-checkbox-checked: #2FA2FF;
    --sidebar-width: 300px;
    --sidebar-width-collapsed: 80px;
    --sidebar-header-height: 80px;
    --border-radius-default: 8px;
    --border-radius-large: 12px;
}

/* Apply dark theme by default */
html {
    --color-bg: #0D0F12;
    --color-card: #15181D;
    --color-text-primary: #E3E8EF;
    --color-text-secondary: #A1A6B2;
    --color-divider: #1F232A;
    --color-highlight: #2FA2FF;
    --color-error: #FF4D4F;
    --color-checkbox-unchecked: #3C424E;
    --color-checkbox-checked: #2FA2FF;
}

/* Ensure theme classes override default */
html.light-theme {
    --color-bg: #ffffff !important;
    --color-card: #f8f9fa !important;
    --color-text-primary: #212529 !important;
    --color-text-secondary: #6c757d !important;
    --color-divider: #dee2e6 !important;
    --color-highlight: #007bff !important;
    --color-error: #dc3545 !important;
    --color-checkbox-unchecked: #adb5bd !important;
    --color-checkbox-checked: #007bff !important;
}

html.dark-theme {
    --color-bg: #0D0F12 !important;
    --color-card: #15181D !important;
    --color-text-primary: #E3E8EF !important;
    --color-text-secondary: #A1A6B2 !important;
    --color-divider: #1F232A !important;
    --color-highlight: #2FA2FF !important;
    --color-error: #FF4D4F !important;
    --color-checkbox-unchecked: #3C424E !important;
    --color-checkbox-checked: #2FA2FF !important;
}

/* Theme classes are now applied to html element with !important */

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

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: 'Inter', sans-serif;
}

/* LOGIN */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-card {
    width: 420px;
    height: 500px;
    background-color: var(--color-card);
    padding: 50px;
    border-radius: var(--border-radius-large);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-card h1 {
    display: flex;
    align-items: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
}

.login-card h1 span {
    color: var(--color-text-secondary);
}

.login-card h1 img {
    width: 60px;
    height: 60px;
    margin-right: 10px;
}

.login-card h2.title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-text-primary);
}

.login-card form {
    width: 100%;
}

.login-card form .form-group {
    margin-bottom: 20px;
}

.login-card form .form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--color-text-secondary);
}

.login-card form .form-group input {
    width: 100%;
    background-color: var(--color-card);
    border: 1px solid var(--color-divider);
    border-radius: var(--border-radius-default);
    padding: 10px;
    color: var(--color-text-secondary);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    padding: 12px 14px;
    outline: none;
}

.login-card form .form-group input:focus {
    border-color: var(--color-highlight);
}

.login-card form button {
    width: 100%;
    background-color: var(--color-highlight);
    border: 1px solid var(--color-divider);
    border-radius: var(--border-radius-default);
    padding: 12px 14px;
    color: var(--color-text-primary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.login-card form button:hover:not(:disabled) {
    background-color: var(--color-highlight);
    transform: translateY(-1px);
}

.login-card form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-card form button .loading-spinner {
    margin-left: 8px;
}

.login-card form a {
    text-align: center;
    display: block;
    margin-top: 20px;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-card form a:hover {
    color: var(--color-highlight);
}

.login-card form .error-message {
    margin-top: 15px;
    padding: 10px;
    background-color: #f44336;
    color: white;
    border-radius: var(--border-radius-default);
    font-size: 14px;
    text-align: center;
}

/* MODAL */

.modal-overlay {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: 380px;
    height: 300px;
    background-color: var(--color-bg);
    border-radius: var(--border-radius-large);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Customer Modal Specific Styles */
#addCustomerModal .modal {
    width: 450px;
    height: 600px;
    top: 15%;
}

#addCustomerModal .modal .customer-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#addCustomerModal .modal .customer-form .form-group {
    width: 100%;
    margin-bottom: 15px;
}

#addCustomerModal .modal .customer-form .form-group input {
    width: 100%;
    background-color: var(--color-card);
    border: 1px solid var(--color-divider);
    border-radius: var(--border-radius-default);
    padding: 12px 14px;
    color: var(--color-text-secondary);
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

#addCustomerModal .modal .customer-form .form-group input:focus {
    border-color: var(--color-highlight);
    color: var(--color-text-primary);
}

#addCustomerModal .modal .customer-form .form-group input::placeholder {
    color: var(--color-text-secondary);
}

#addCustomerModal .modal .button_row {
    margin-top: 20px;
}

/* Project Modal Specific Styles */
#addProjectModal .modal {
    width: 500px;
    height: 650px;
    top: 10%;
}

#addProjectModal .modal .project-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#addProjectModal .modal .project-form .form-group {
    width: 100%;
    margin-bottom: 15px;
}

#addProjectModal .modal .project-form .form-group input,
#addProjectModal .modal .project-form .form-group select,
#addProjectModal .modal .project-form .form-group textarea {
    width: 100%;
    background-color: var(--color-card);
    border: 1px solid var(--color-divider);
    border-radius: var(--border-radius-default);
    padding: 12px 14px;
    color: var(--color-text-secondary);
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

#addProjectModal .modal .project-form .form-group input:focus,
#addProjectModal .modal .project-form .form-group select:focus,
#addProjectModal .modal .project-form .form-group textarea:focus {
    border-color: var(--color-highlight);
    color: var(--color-text-primary);
}

#addProjectModal .modal .project-form .form-group input::placeholder,
#addProjectModal .modal .project-form .form-group textarea::placeholder {
    color: var(--color-text-secondary);
}

#addProjectModal .modal .project-form .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

#addProjectModal .modal .project-form .form-group select option {
    background-color: var(--color-card);
    color: var(--color-text-primary);
    padding: 8px;
}

#addProjectModal .modal .button_row {
    margin-top: 20px;
}

/* Invoice Modal Specific Styles */
#addInvoiceModal .modal {
    width: 500px;
    height: 600px;
    top: 10%;
}

#addInvoiceModal .modal .invoice-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#addInvoiceModal .modal .invoice-form .form-group {
    width: 100%;
    margin-bottom: 15px;
}

#addInvoiceModal .modal .invoice-form .form-group input,
#addInvoiceModal .modal .invoice-form .form-group select {
    width: 100%;
    background-color: var(--color-card);
    border: 1px solid var(--color-divider);
    border-radius: var(--border-radius-default);
    padding: 12px 14px;
    color: var(--color-text-secondary);
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

#addInvoiceModal .modal .invoice-form .form-group input:focus,
#addInvoiceModal .modal .invoice-form .form-group select:focus {
    border-color: var(--color-highlight);
    color: var(--color-text-primary);
}

#addInvoiceModal .modal .invoice-form .form-group input::placeholder {
    color: var(--color-text-secondary);
}

#addInvoiceModal .modal .invoice-form .form-group select option {
    background-color: var(--color-card);
    color: var(--color-text-primary);
    padding: 8px;
}

#addInvoiceModal .modal .button_row {
    margin-top: 20px;
}

/* Task Modal Specific Styles */
#addTaskModal .modal {
    width: 500px;
    height: 600px;
    top: 10%;
}

#addTaskModal .modal .task-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#addTaskModal .modal .task-form .form-group {
    width: 100%;
    margin-bottom: 15px;
}

#addTaskModal .modal .task-form .form-group input,
#addTaskModal .modal .task-form .form-group select {
    width: 100%;
    background-color: var(--color-card);
    border: 1px solid var(--color-divider);
    border-radius: var(--border-radius-default);
    padding: 12px 14px;
    color: var(--color-text-secondary);
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

#addTaskModal .modal .task-form .form-group input:focus,
#addTaskModal .modal .task-form .form-group select:focus {
    border-color: var(--color-highlight);
    color: var(--color-text-primary);
}

#addTaskModal .modal .task-form .form-group input::placeholder {
    color: var(--color-text-secondary);
}

#addTaskModal .modal .task-form .form-group select option {
    background-color: var(--color-card);
    color: var(--color-text-primary);
    padding: 8px;
}

#addTaskModal .modal .button_row {
    margin-top: 20px;
}

.modal .icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-card);
    border: 1px solid var(--color-divider);
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.modal .icon i {
    font-size: 38px;
    color: var(--color-highlight);
    text-shadow: 0px 0px 2px var(--color-highlight);
}

.modal .heading {
    font-size: 24px;
    margin-bottom: 20px;
}

.modal .description {
    font-size: 16px;
    margin-bottom: 40px;
}

.modal .button_row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 310px;
}

.modal .button_row .btn {
    width: 150px;
    height: 40px;
    background-color: var(--color-card);
    border: 1px solid var(--color-divider);
    border-radius: var(--border-radius-large);
    color: var(--color-text-primary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.modal .button_row .btn.blue {
    background-color: #2fa1ff1b;
    color: var(--color-highlight);
    border: 1px solid var(--color-highlight);
}

.modal .button_row .btn.delete {
    background-color: #f44336;
    color: white;
    border: 1px solid #f44336;
}

.modal .button_row .btn.delete:hover {
    background-color: #d32f2f;
    border-color: #d32f2f;
}

/* DASHBOARD */

.max-vw {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: row;
}

.sidebar-toggle {
    width: 40px;
    height: 40px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-divider);
    border-radius: var(--border-radius-default);
    position: fixed;
    left: var(--sidebar-width);
    top: calc(var(--sidebar-header-height) / 2);
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-toggle a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--color-checkbox-unchecked);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-toggle a i {
    transition: transform 0.3s ease;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100%;
    background-color: var(--color-bg);
    border-right: 1px solid var(--color-divider);
    position: fixed;
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar-header {
    width: 100%;
    height: var(--sidebar-header-height);
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    /* border-bottom: 1px solid var(--color-divider); */
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0px 20px;
    transition: all 0.3s ease;
}

.sidebar-header img {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.sidebar.collapsed .sidebar-header img {
    margin-right: 0;
}

.sidebar .nav {
    width: 100%;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar .nav ul {
    list-style-type: none;
    width: 100%;
    height: 100%;
}

.sidebar .nav ul li {
    width: calc(100% - 20px);
    height: 50px;
    background-color: var(--color-bg);
    margin-left: 10px;
    margin-bottom: 10px;
    border-radius: var(--border-radius-default);
    display: inline-flex;
    transition: all 0.3s ease;
}

/* Removed the absolute positioning for last-child to show all navigation items */

/* User info styles */
.sidebar .user-info {
    margin-top: auto;
    padding: 15px 20px;
    border-top: 1px solid var(--color-divider);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: default;
    outline: none;
}

.sidebar .user-info:hover {
    background-color: transparent;
}

.sidebar .user-info .user-avatar {
    width: 32px;
    height: 32px;
    background-color: var(--color-highlight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar .user-info .user-name {
    color: var(--color-text-primary);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar .logout-section {
    padding: 0 20px 20px 20px;
}

.sidebar .logout-section a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: var(--border-radius-default);
    cursor: pointer;
    background-color: transparent;
    border: 1px solid transparent;
}

.sidebar .logout-section a:hover {
    background-color: var(--color-card);
    color: var(--color-text-primary);
    border-color: var(--color-divider);
}

.sidebar .logout-section a .icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.sidebar .logout-section a .icon i {
    font-size: 16px;
    color: inherit;
}

/* Theme Switch Styles */
.sidebar .theme-switch-section {
    padding: 0 20px 10px 20px;
}

.sidebar .theme-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background-color: transparent;
    border: 1px solid var(--color-divider);
    border-radius: var(--border-radius-default);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
}

.sidebar .theme-toggle:hover {
    background-color: var(--color-card);
    color: var(--color-text-primary);
    border-color: var(--color-highlight);
}

.sidebar .theme-toggle .icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.sidebar .theme-toggle .icon i {
    font-size: 16px;
    color: inherit;
}

.sidebar .theme-toggle span {
    color: inherit;
    font-weight: 500;
}

.sidebar .nav ul li.active {
    background-color: var(--color-card);
    border: 1px solid var(--color-divider);
}

.sidebar .nav ul li.active a {
    color: var(--color-text-primary);
}

.sidebar .nav ul li a {
    line-height: 50px;
    text-decoration: none;
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
    display: inline-flex;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar.collapsed .nav ul li a {
    justify-content: center;
}

.sidebar .nav ul li:hover {
    background-color: var(--color-card);
    cursor: pointer;
}

.sidebar .nav ul li a .icon {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.sidebar .nav ul li a .icon i {
    font-size: 16px;
    color: var(--color-checkbox-unchecked);
}

/* Remove text shadow in light theme */
html.light-theme .sidebar .nav ul li a,
html.light-theme .sidebar .nav ul li a .icon i,
html.light-theme .sidebar .logout-section a,
html.light-theme .sidebar .logout-section a .icon i {
    text-shadow: none;
}

/* Login Theme Switch Styles */
.theme-switch-login {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-toggle-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: var(--color-card);
    border: 1px solid var(--color-divider);
    border-radius: var(--border-radius-default);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.theme-toggle-login:hover {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    border-color: var(--color-highlight);
}

.theme-toggle-login i {
    font-size: 16px;
    color: inherit;
}

.theme-toggle-login span {
    color: inherit;
    font-weight: 500;
}

/* Remove text shadow in light theme for login */
html.light-theme .login-card h1,
html.light-theme .login-card h2,
html.light-theme .login-card label,
html.light-theme .login-card input,
html.light-theme .login-card button,
html.light-theme .login-card a {
    text-shadow: none;
}

.sidebar.collapsed .nav ul li a span {
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
}

/* PAGE */

.page-wrapper {
    width: calc(100vw - var(--sidebar-width));
    height: 100%;
    background-color: var(--color-bg);
    margin-left: var(--sidebar-width);
    transition: all 0.3s ease;
}

.page-wrapper.collapsed {
    width: calc(100vw - var(--sidebar-width-collapsed));
    margin-left: var(--sidebar-width-collapsed);
}

.page-heading { 
    width: calc(100vw - var(--sidebar-width) - 100px);
    height: var(--sidebar-header-height);
    margin-left: 50px;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.page-wrapper.collapsed .page-heading {
    width: calc(100vw - var(--sidebar-width-collapsed) - 100px);
}

.page-heading h2 {
    font-weight: 500;
}

.page-heading.divider {
    border-bottom: 1px solid var(--color-divider);
}

.page-heading  a.btn {
    background-color: var(--color-bg);
    border: 1px solid var(--color-divider);
    border-radius: var(--border-radius-default);
    padding: 10px 20px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-heading  a.btn:hover {
    background-color: var(--color-card);
    color: var(--color-text-primary);
    cursor: pointer;
}

.page-heading  a.btn i {
    margin-right: 10px;
}

.page-content {
    width: calc(100vw - var(--sidebar-width) - 100px);
    height: 100%;
    margin-left: 50px;
}

.page-content .section-heading {
    margin-top: 32px;
}

.page-content .section-heading h2 {
    font-weight: 500;
}

.page-content .section {
    width: 100%;
    padding-bottom: 32px;
}

.page-content .section.filter-section {
    padding-bottom: 8px;
}

.page-content .section.divider {
    border-bottom: 1px solid var(--color-divider);
}

.page-content .section .card-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    margin-top: 32px;
}

.page-content .section .card-row .card {
    background-color: var(--color-card);
    border-radius: var(--border-radius-default);
    border: 1px solid var(--color-divider);
    margin-right: 20px;
}

.page-content .section .card-row .card .card-body {
    padding: 15px;
}

.page-content .section .card-row .card .card-body .title {
    color: var(--color-text-secondary);
    font-size: 16px;
    margin-bottom: 10px;
}

.page-content .section .card-row .card .card-body .value {
    color: var(--color-highlight);
    font-size: 24px;
}

.page-content .section .table-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    margin-top: 16px;
}

.page-content .section .table-row .table {
    border-radius: var(--border-radius-default);
    border: 1px solid var(--color-divider);
}

.page-content .section .table-row .table .row {
    background-color: var(--color-card);
    padding: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-divider);
}

.page-content .section .table-row .table .row:last-child {
    background-color: var(--color-card);
    padding: 10px;
    border-bottom-left-radius: var(--border-radius-default);
    border-bottom-right-radius: var(--border-radius-default);   
    border: 0;
}

.page-content .section .table-row .table .row.heading {
    background-color: var(--color-bg);
    border-top-left-radius: var(--border-radius-default);
    border-top-right-radius: var(--border-radius-default);
}

.page-content .section .table-row .table .row .col {
    text-align: left;
    margin-right: 10px;
    width: 150px;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 120px;
}

.page-content .section .table-row .table .row .col:first-child {
    flex: 2;
    min-width: 200px;
}

.page-content .section .table-row .table .row .col:nth-child(2) {
    flex: 2;
    min-width: 200px;
}

.page-content .section .table-row .table .row .col:nth-child(3) {
    flex: 1;
    min-width: 100px;
}

.page-content .section .table-row .table .row .col:nth-child(4) {
    flex: 1;
    min-width: 100px;
}

.page-content .section .table-row .table .row .col:nth-child(5) {
    flex: 1;
    min-width: 100px;
}

.page-content .section .table-row .table .row .col:last-child {
    width: 120px;
    justify-content: flex-start;
    gap: 5px;
    flex: 0 0 auto;
}

/* Small action buttons */
.btn-small {
    width: 30px;
    height: 30px;
    background-color: var(--color-card);
    border: 1px solid var(--color-divider);
    border-radius: var(--border-radius-default);
    color: var(--color-text-secondary);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background-color: var(--color-highlight);
    color: var(--color-text-primary);
    border-color: var(--color-highlight);
}

.btn-small.delete:hover {
    background-color: var(--color-error);
    border-color: var(--color-error);
    color: white;
}

/* Notification styles */
.notification {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.page-content .section .search-row {
    width: 100%;
    display: flex;
    flex-direction: row;
}

.page-content .section .search-row .icon {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top-left-radius: var(--border-radius-default);
    border-bottom-left-radius: var(--border-radius-default);
    border-top: 1px solid var(--color-divider);
    border-left: 1px solid var(--color-divider);
    border-bottom: 1px solid var(--color-divider);
}

.page-content .section .search-row input.search {
    width: 100%;
    background-color: var(--color-bg);
    border: none;
    border-top: 1px solid var(--color-divider);
    border-right: 1px solid var(--color-divider);
    border-bottom: 1px solid var(--color-divider);
    border-top-right-radius: var(--border-radius-default);
    border-bottom-right-radius: var(--border-radius-default);
    padding: 10px 10px 10px 0px;
    color: var(--color-text-secondary);
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

.page-content .section .search-row input.search:focus {
    outline: none;
}

/* Filter row styles */
.filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.filter-btn {
    padding: 8px 16px;
    background-color: var(--color-card);
    border: 1px solid var(--color-divider);
    border-radius: var(--border-radius-default);
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--color-highlight);
    color: var(--color-text-primary);
    border-color: var(--color-highlight);
}

.filter-btn.active {
    background-color: var(--color-highlight);
    color: var(--color-text-primary);
    border-color: var(--color-highlight);
}

/* Status badge styles */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.status-aktiv {
    background-color: #4CAF50;
    color: white;
}

.status-inaktiv {
    background-color: #FF9800;
    color: white;
}

.status-archiviert {
    background-color: #9E9E9E;
    color: white;
}

.status-in_progress {
    background-color: #2196F3;
    color: white;
}

.status-pending {
    background-color: #FF9800;
    color: white;
}

.status-done {
    background-color: #4CAF50;
    color: white;
}

.status-offen {
    background-color: #FF9800;
    color: white;
}

.status-bezahlt {
    background-color: #4CAF50;
    color: white;
}

.status-überfällig {
    background-color: #F44336;
    color: white;
}

.status-in_bearbeitung {
    background-color: #2196F3;
    color: white;
}

.status-fertig {
    background-color: #4CAF50;
    color: white;
}

/* Form select styling */
#addCustomerModal .modal .customer-form .form-group select {
    width: 100%;
    background-color: var(--color-card);
    border: 1px solid var(--color-divider);
    border-radius: var(--border-radius-default);
    padding: 12px 14px;
    color: var(--color-text-secondary);
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

#addCustomerModal .modal .customer-form .form-group select:focus {
    border-color: var(--color-highlight);
    color: var(--color-text-primary);
}

#addCustomerModal .modal .customer-form .form-group select option {
    background-color: var(--color-card);
    color: var(--color-text-primary);
    padding: 8px;
}

/* Dashboard table specific styles */
#recentCustomersTable {
    width: 100%;
}

#recentCustomersTable .row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr;
    gap: 20px;
    align-items: center;
    padding: 15px 20px;
}

#recentCustomersTable .row.heading {
    font-weight: 600;
    color: var(--color-text-secondary);
    background-color: var(--color-bg);
}

#recentCustomersTable .row:not(.heading) {
    background-color: var(--color-card);
    border-bottom: 1px solid var(--color-divider);
}

#recentCustomersTable .row:last-child {
    border-bottom: none;
    border-bottom-left-radius: var(--border-radius-default);
    border-bottom-right-radius: var(--border-radius-default);
}

#recentCustomersTable .col {
    margin-right: 0;
    width: auto;
    flex: none;
}

#recentProjectsTable {
    width: 100%;
}

#recentProjectsTable .row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr;
    gap: 20px;
    align-items: center;
    padding: 15px 20px;
}

#recentProjectsTable .row.heading {
    font-weight: 600;
    color: var(--color-text-secondary);
    background-color: var(--color-bg);
}

#recentProjectsTable .row:not(.heading) {
    background-color: var(--color-card);
    border-bottom: 1px solid var(--color-divider);
}

#recentProjectsTable .row:last-child {
    border-bottom: none;
    border-bottom-left-radius: var(--border-radius-default);
    border-bottom-right-radius: var(--border-radius-default);
}

#recentProjectsTable .col {
    margin-right: 0;
    width: auto;
    flex: none;
}

/* Customers table specific styles */
#customersTable {
    width: 100%;
}

#customersTable .row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr 1fr 120px;
    gap: 15px;
    align-items: center;
    padding: 12px 15px;
}

#customersTable .row.heading {
    font-weight: 600;
    color: var(--color-text-secondary);
    background-color: var(--color-bg);
}

#customersTable .row:not(.heading) {
    background-color: var(--color-card);
    border-bottom: 1px solid var(--color-divider);
}

#customersTable .row:last-child {
    border-bottom: none;
    border-bottom-left-radius: var(--border-radius-default);
    border-bottom-right-radius: var(--border-radius-default);
}

#customersTable .col {
    margin-right: 0;
    width: auto;
    flex: none;
}

#customersTable .col:last-child {
    justify-content: flex-start;
    gap: 5px;
    width: 120px;
}

/* Projects table specific styles */
#projectsTable {
    width: 100%;
}

#projectsTable .row {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr 1fr 1fr 120px;
    gap: 15px;
    align-items: center;
    padding: 12px 15px;
}

#projectsTable .row.heading {
    font-weight: 600;
    color: var(--color-text-secondary);
    background-color: var(--color-bg);
}

#projectsTable .row:not(.heading) {
    background-color: var(--color-card);
    border-bottom: 1px solid var(--color-divider);
}

#projectsTable .row:last-child {
    border-bottom: none;
    border-bottom-left-radius: var(--border-radius-default);
    border-bottom-right-radius: var(--border-radius-default);
}

#projectsTable .col {
    margin-right: 0;
    width: auto;
    flex: none;
}

#projectsTable .col:last-child {
    justify-content: flex-start;
    gap: 5px;
    width: 120px;
}

/* Invoices table specific styles */
#invoicesTable {
    width: 100%;
}

#invoicesTable .row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr 1fr 120px;
    gap: 15px;
    align-items: center;
    padding: 12px 15px;
}

#invoicesTable .row.heading {
    font-weight: 600;
    color: var(--color-text-secondary);
    background-color: var(--color-bg);
}

#invoicesTable .row:not(.heading) {
    background-color: var(--color-card);
    border-bottom: 1px solid var(--color-divider);
}

#invoicesTable .row:last-child {
    border-bottom: none;
    border-bottom-left-radius: var(--border-radius-default);
    border-bottom-right-radius: var(--border-radius-default);
}

#invoicesTable .col {
    margin-right: 0;
    width: auto;
    flex: none;
}

#invoicesTable .col:last-child {
    flex: 0 0 auto;
}

/* Tasks table specific styles */
#tasksTable {
    width: 100%;
}

#tasksTable .row {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr 1fr 1fr 120px;
    gap: 15px;
    align-items: center;
    padding: 12px 15px;
}

#tasksTable .row.heading {
    font-weight: 600;
    color: var(--color-text-secondary);
    background-color: var(--color-bg);
}

#tasksTable .row:not(.heading) {
    background-color: var(--color-card);
    border-bottom: 1px solid var(--color-divider);
}

#tasksTable .row:last-child {
    border-bottom: none;
    border-bottom-left-radius: var(--border-radius-default);
    border-bottom-right-radius: var(--border-radius-default);
}

#tasksTable .col {
    margin-right: 0;
    width: auto;
    flex: none;
}

#tasksTable .col:last-child {
    flex: 0 0 auto;
}
