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

/* General Variables */
:root {
    /* Color variables */
    --background_color: #ffffff;
    --background_color_light: #f7f7f7;
    --text_color: #09223a;
    --header_color: #1B3A57;
    --header_color_text: #ffffff;
    --header_color_hover: #99c1e6;
    --hover_color: #99c1e6;

    /* Font and size variables */
    --font_family: "Roboto", sans-serif;
    --font_size_base: 16px;
    --font_size_large: 1.2em;

    /* Shadow variables */
    --box_shadow_light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --box_shadow_medium: 0 4px 8px rgba(0, 0, 0, 0.2);
    --box_shadow_dark: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* General Styling */
body {
    background-color: var(--background_color_light);
    background-image: var(--background_color_gradient);
    color: var(--text_color);
    font-family: var(--font_family);
    font-size: var(--font_size_base);
}

a:link, a:visited {
    color: var(--header_color_text);
    text-decoration: none;
}

a:hover {
    color: var(--hover_color);
}

button {
    background-color: var(--header_color);
    color: var(--header_color_text);
    border: 1px solid var(--header_color);
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: var(--font_size_base);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    text-align: center;
    box-shadow: var(--box_shadow_light);
}

button:hover {
    background-color: var(--hover_color);
    box-shadow: var(--box_shadow_dark);
}

.btn-margin-top {
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--box_shadow_medium);
    background-color: var(--background_color);
    text-align: center;
}

table a:link, table a:visited {
    color: var(--text_color);
    text-decoration: none;
}

table a:hover {
    color: var(--hover_color);
}

th {
    background-color: var(--header_color);
    color: var(--header_color_text);
    font-size: var(--font_size_md);
    padding: 10px;
}

td {
    padding: 8px;
    border-bottom: 1px solid var(--background_color);
    font-size: var(--font_size_sm, 16px);
    color: var(--text_color, #000);
}

td :hover {
    font-size: var(--font_size_md, 18px);
}

tr:last-child td {
    border-bottom: none;
}

/* Hide and Display Classes */
.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--header_color);
    padding: 1rem;
    color: var(--header_color_text);
    width: 35%;
    margin: 20px auto;
    border-radius: 25px;
    box-shadow: var(--box_shadow_medium);
}

.navbar .logo h1 {
    margin: 0;
    font-size: var(--font_size_large);
}

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--header_color_text);
    font-weight: bold;
}

.nav-links a:hover {
    color: var(--header_color_hover);
}

/* Burger Icon */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--background_color);
    margin: 3px 0;
}

@media (max-width: 1500px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: var(--text_color);
        padding: 1rem;
        box-shadow: var(--box_shadow_light);
    }

    .nav-links.active {
        display: flex;
    }

    .burger {
        display: flex;
    }
}

/* Main Content Styling */
.main-content {
    padding: 20px;
    margin: 0 auto;
    font-family: var(--font_family);
    font-size: var(--font_size_base);
    color: var(--text_color);
    max-width: 1400px;
}

.main-content-centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font_family);
    font-size: var(--font_size_base);
    color: var(--text_color);
    max-width: 1400px;
}
.main-title {
    margin: 40px 0px 20px 0px;
}
.main-title-centered {
    text-align: center;
}

/* Kanban Board */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1400px;
    grid-template-columns: repeat(2, 1fr);
}

.kanban-column {
    background-color: var(--background_color, #fff);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--box_shadow_light, 0 4px 8px rgba(0, 0, 0, 0.1));
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 80vh;
}

.kanban-column-header {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: var(--font_size_md, 18px); /* Match card title font size */
    text-align: center;
    color: var(--text_color); /* Consistent text color */
}

.kanban-card {
    background-color: var(--background_color, #fff);
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 15px; /* Ensure padding within the card */
    transition: background-color 0.3s ease;
}

.kanban-card-body {
    overflow-x: auto;
}

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

.kanban-card th, .kanban-card td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.kanban-card tr:last-child td {
    border-bottom: none;
}

.kanban-card:hover {
    background-color: var(--background_color_light);
}

/* Client List Styiling */
.client-list {
    max-width: 1400px;
}

.client-list-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
    align-content: center;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: var(--background_color);
    box-shadow: var(--box_shadow_medium);
    max-width: 600px;
    margin: 0 auto;
}

.form-container {
    max-width: 600px;
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--background_color);
    border-radius: 10px;
    box-shadow: var(--box_shadow_light);
    border: 2px solid var(--text_color);
}

.responsive-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


/* Form Controls */
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--text_color);
    border-radius: 8px;
    background-color: var(--background_color);
    color: var(--text_color);
    box-shadow: var(--box_shadow_light, 0 2px 4px rgba(0, 0, 0, 0.1));
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control::placeholder {
    color: #888888;
}

.form-control:focus {
    border-color: var(--hover_color);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
}

/* Submit Button */
.form-submit {
    background-color: var(--header_color);
    color: var(--header_color_text);
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.form-submit:hover {
    background-color: var(--hover_color, #007BFF);
    box-shadow: var(--box_shadow_medium, 0 4px 8px rgba(0, 0, 0, 0.2));
}

.error {
    color: #ff0000; /* Red text for errors */
    margin-top: 5px;
    font-size: 0.8em;
}

.form-container {
    background-color: var(--background_color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--box_shadow_light, 0 2px 4px rgba(0, 0, 0, 0.1));
    max-width: 600px;
    margin: 0 auto;
}

/* Card Styling */
.card-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    gap: 20px;
    max-width: 1400px;
}

.card {
    background-color: var(--background_color);
    border-radius: 8px;
    box-shadow: var(--box_shadow_light);
    padding: 20px;
    margin-bottom: 20px;
    flex: 1;    
}

.card canvas {
    width: 100%; /* Make canvas take the full width of the card */
    height: auto; /* Maintain aspect ratio */
}

.card h2 {
    margin: 0;
    font-size: var(--font_size_md, 18px);
    color: var(--text_color);
}

.card p {
    font-size: var(--font_size_xl, 24px);
    margin-top: 10px;
    color: var(--text_color);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    table {
        width: 100%;
        min-width: auto;
        margin: 10px 0;
        box-shadow: none;
    }

    th, td {
        padding: 6px;
        font-size: 14px;
    }

    th {
        font-size: 16px;
        padding: 8px;
    }

    td {
        font-size: 14px;
    }

    table a:link, table a:visited {
        font-size: 14px;
    }

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

    .kanban-board {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .kanban-column {
        padding: 10px;
        margin-bottom: 15px; /* Match responsive card margin */
    }

    .kanban-card {
        padding: 10px;
    }
    
    .form-group {
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }

    .form-group label {
        flex: 1;
        margin-bottom: 0;
        margin-right: 10px;
        font-size: var(--font_size_base);
        color: var(--text_color);
    }

    .form-control {
        flex: 2;
    }
    
    .form-container {
        padding: 15px;
        max-width: 90%;
    }

    .form-submit {
        padding: 15px;
    }
    
    .card-grid {
        flex-direction: column;
    }

    .card {
        margin-bottom: 15px;
        flex: 1 1 100%; /* Allow cards to take full width on smaller screens */
        margin: 5px; /* Adjust margin as needed */
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, var(--background_color) 0%, var(--background_color_light) 100%);
    border-radius: 12px;
    box-shadow: var(--box_shadow_medium);
    border: 1px solid rgba(27, 58, 87, 0.1);
}

.pagination-info {
    font-size: 15px;
    color: var(--text_color);
    font-weight: 500;
    background-color: rgba(27, 58, 87, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(27, 58, 87, 0.1);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-link {
    background: linear-gradient(135deg, var(--header_color) 0%, #2a4a6b 100%);
    color: var(--header_color_text);
    padding: 10px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(27, 58, 87, 0.2);
    min-width: 80px;
    text-align: center;
}

.page-link:hover {
    background: linear-gradient(135deg, var(--hover_color) 0%, #7ba8d1 100%);
    color: var(--header_color_text);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(27, 58, 87, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.page-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(27, 58, 87, 0.2);
}

.current-page {
    background: linear-gradient(135deg, var(--header_color) 0%, #2a4a6b 100%);
    color: var(--header_color_text);
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--header_color);
    box-shadow: 0 2px 4px rgba(27, 58, 87, 0.2);
    min-width: 120px;
    text-align: center;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
        margin: 20px 0;
    }
    
    .pagination-info {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    
    .page-link {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 70px;
        border-radius: 20px;
    }
    
    .current-page {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 100px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .pagination {
        padding: 12px;
    }
    
    .pagination-controls {
        gap: 4px;
    }
    
    .page-link {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 60px;
    }
    
    .current-page {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 90px;
    }
}

  