/* Base styles (yours) */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #e5ecf5;
}

.logo {
    display: block;
    margin: 0 auto 20px;
    width: 60%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 25px;
    padding-bottom: 10px;
    color: #1a3d7c;
    /* WilTech blue */
    border-bottom: 2px solid #e3e7ee;
}

#login-msg {
    text-align: center;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
}

/* buttons */

.btn {
    padding: 12px 24px;
    background-color: #007bff;
    /* Primary color */
    color: white;
    border: none;
    border-radius: 8px;
    /* Slightly rounded corners */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Smooth transition for all states */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    /* Lifts button up */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    /* Pushes button back down on click */
}

.btn-submit {
    width: 100%;
    background: #006edc;
    color: white;
}



/* end button */


.menu-container {
    text-align: right;
    margin-bottom: 20px;
}


input {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

textarea {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px;
    font-size: 16px;
    width: 100%;
    resize: vertical;

}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

table td:last-child,
table th:last-child {
    text-align: center;
    /* Horizontal centering */
    vertical-align: middle;
    /* Vertical centering */
}

/* Invoice buttons */
.invoice-btn {
    display: inline-block;
    min-width: 80px;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    color: white;
    text-align: center;
}

.invoice-btn.paid {
    background-color: #2e8b57;
}

.invoice-btn.paid:hover {
    background: #1e7e34;
}

.invoice-btn.unpaid,
.invoice-btn.pastdue {
    background-color: #c62828;
}

.invoice-btn.unpaid:hover,
.invoice-btn.pastdue:hover {
    background: #b71c1c;
}

.invoice-btn.pastdue::after {
    content: " !";
    font-weight: 900;
}


/* Make table scrollable on small screens */
.table-wrapper {
    overflow-x: auto;
}

/* no wrap on the table rows */
table td,
table th {
    white-space: nowrap;
}

select {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.hidden {
    display: none;
}

#login-msg.success {
    color: #2e8b57;
}

#login-msg {
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 8px;
    margin-top: 12px;
}

#login-msg.success {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    background: #e8f8ef;
    border-left-color: #2e9f55;
    background: #f2f5f9;
    border-left: 4px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    color: #1f7a40;
}

#login-msg.success::before {
    content: "✔";
    font-size: 1.1rem;
    font-weight: bold;
    color: #2e9f55;
}

.tab-btn.active {
    border-bottom: 2px solid #007bff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


/* hamburger menu */

.wt-nav {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 14px;
    display: inline-block;
    z-index: 9999;
}

/* Hide checkbox */
#menu-toggle {
    display: none;
}

/* Hamburger icon */
.hamburger {
    font-size: 28px;
    color: #0D3B66;
    cursor: pointer;
    user-select: none;
}

/* Menu container */
.wt-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    position: absolute;
    top: 48px;
    right: 0;
    width: 180px;
    background: #4b77a0;
    border-radius: 6px;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.wt-menu li {
    margin: 0;
    padding: 0;
}

/* Menu links */
.wt-menu li a {
    display: block;
    padding: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wt-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Toggle open */
#menu-toggle:checked+.hamburger+.wt-menu {
    display: flex;
}

/* end hamburger menu */



/* change table to stacked cards on small screen */
@media (max-width: 480px) {

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        padding: 10px;
    }

    td {
        display: flex;
        justify-content: space-between;
        padding: 8px 10px;
        border: none;
        border-bottom: 1px solid #eee;
    }

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

    td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #555;
    }

}