body {
    background: #262626;
    min-height: 100vh;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
}


.container {
    max-width: 1200px;
    margin: 48px auto;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    padding: 36px 28px;
    animation: fadeIn 1.2s cubic-bezier(.4,0,.2,1);
}



@keyframes fadeIn {
    from { opacity: 0; transform: translateY(40px);}
    to { opacity: 1; transform: translateY(0);}
}

/* Company header styles */
.company-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 32px;
    justify-content: flex-start;
}

.company-logo {
    width: 120px;              /* Larger size */
    height: 120px;
    object-fit: cover;         /* Ensures the image fills the circle */
    border-radius: 50%;        /* Perfect circle */
    background: #222;
    animation: logo-spin 4s linear infinite, logo-glow 2s ease-in-out infinite alternate;
    box-shadow: 0 0 32px 8px #e6394655;
    margin-right: 10px;
    display: block;
}
@keyframes logo-spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}
@keyframes logo-glow {
    0% { box-shadow: 0 0 32px 8px #e6394655; }
    100% { box-shadow: 0 0 48px 16px #ffd70088; }
}

.company-name {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 12px #ff512f55;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    transition: 
        background 0.6s cubic-bezier(.4,0,.2,1),
        -webkit-text-fill-color 0.6s cubic-bezier(.4,0,.2,1),
        text-shadow 0.6s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
}

.company-name:hover {
    background: linear-gradient(90deg, #ffd700 0%, #fffbe6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 16px #ffd700cc, 0 1px 0 #bfa600;
}
.form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    align-items: center;
    justify-content: flex-start;
}
.form-row label {
    flex: 0 0 auto;
    min-width: unset;
    margin: 0;
    font-size: 1rem;
}
.form-row input[type="text"],
.form-row input[type="number"],
.form-row input[type="date"] {
    width: 140px;
    min-width: 0;
    padding: 6px 8px;
    font-size: 1rem;
    margin: 0 2px 0 4px;
    box-shadow: none;
}

.weeks-row {
    display: flex;
    gap: 32px;
    margin-top: 18px;
    margin-bottom: 18px;
}
.week-col {
    flex: 1 1 0;
    min-width: 220px;
}
.week-col table {
    margin-top: 0;
    margin-bottom: 0;
}

h2, h3 {
    font-weight: 700;
    background: linear-gradient(90deg, #e63946 0%, #457b9d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px #e0e7ff;
}

h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.18rem;
}

label {
    display: block;
    font-weight: 500;
    color: #22223b;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

input[type="text"], input[type="number"], input[type="date"] {
    width: 100%;
    padding: 7px 8px;
    border: 1.5px solid #bfc9d9;
    border-radius: 7px;
    font-size: 1.01rem;
    background: #f7fafc;
    margin-top: 4px;
    margin-bottom: 2px;
    transition: border 0.3s, box-shadow 0.3s;
    box-shadow: 0 1px 4px #e0e7ff;
}

input[type="text"]:focus, input[type="number"]:focus, input[type="date"]:focus {
    border: 1.5px solid #5f6fff;
    box-shadow: 0 2px 12px #b3bcff;
    outline: none;
}

input[type="checkbox"] {
    accent-color: #2ec4b6;
    width: 18px;
    height: 18px;
    transition: box-shadow 0.2s;
    vertical-align: middle;
    margin: 0 auto;
    display: block;
}
input[type="checkbox"]:focus {
    box-shadow: 0 0 0 2px #2ec4b6;
}

/* Table styling and alignment */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px #e0e7ff;
    animation: tableFadeIn 1.1s cubic-bezier(.4,0,.2,1);
}

@keyframes tableFadeIn {
    from { opacity: 0; transform: scale(0.97);}
    to { opacity: 1; transform: scale(1);}
}

th, td {
    padding: 7px 6px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    font-size: 0.98rem;
    vertical-align: middle;
    transition: background 0.3s;
}

td input[type="number"] {
    width: 60px;
    min-width: 0;
    padding: 4px 6px;
    font-size: 0.98rem;
    margin: 0 auto;
    display: block;
    text-align: right;
    border-radius: 5px;
    box-shadow: none;
    /* Remove spinner for Chrome, Safari, Edge */
    -webkit-appearance: none;
    appearance: textfield;
}
td input[type="number"]::-webkit-outer-spin-button,
td input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Remove spinner for Firefox */
td input[type="number"] {
    -moz-appearance: textfield;
}

td input[type="checkbox"] {
    margin: 0 auto;
    display: block;
    vertical-align: middle;
}

td:last-child {
    padding-left: 0;
    padding-right: 0;
}

th {
    background: linear-gradient(90deg, #e63946 0%, #457b9d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    border-bottom: 2px solid #b3bcff;
    text-shadow: none;
}

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

tr:hover td {
    background: #e0e7ff33;
    transition: background 0.2s;
}

.totals-row td {
    font-weight: bold;
    background: #e0fbfc;
    color: #22223b;
    font-size: 1.07rem;
    border-top: 2px solid #b3bcff;
    animation: highlightRow 0.7s;
}

@keyframes highlightRow {
    from { background: #b3bcff; }
    to { background: #e0fbfc; }
}

.payslip-print {
    max-width: 100%;
    margin: 0 auto;
    animation: fadeIn 1.2s cubic-bezier(.4,0,.2,1);
}

#payslipResult {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.6s cubic-bezier(.4,0,.2,1);
    margin-top: 40px;
}
#payslipResult.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Print button styling */
.print-btn {
    display: inline-block;
    margin: 18px 0 24px 0;
    padding: 12px 28px;
    background: linear-gradient(90deg, #457b9d 0%, #2ec4b6 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 12px #b3bcff;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.print-btn:hover, .print-btn:focus {
    background: linear-gradient(90deg, #2ec4b6 0%, #457b9d 100%);
    transform: scale(1.04);
    box-shadow: 0 6px 24px #b3bcff;
}

button[type="submit"] {
    margin-top: 18px;
    width: 100%;
    padding: 12px 0;
    background: #457b9d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 12px #b3bcff;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}
button[type="submit"]:hover, button[type="submit"]:focus {
    background: #2ec4b6;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 24px #b3bcff;
}

@media (max-width: 900px) {
    .weeks-row { flex-direction: column; gap: 0; }
    .week-col { min-width: 0; }
    .form-row { flex-direction: column; gap: 0; }
}

@media (max-width: 1100px) {
    .container { max-width: 98vw; }
    .payslip-print table { font-size: 0.97rem; }
}

::-webkit-scrollbar {
    width: 8px;
    background: #e0e7ff;
}
::-webkit-scrollbar-thumb {
    background: #b3bcff;
    border-radius: 8px;
}

.company-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 12px;
    background: #222;
    animation: logo-spin 6s linear infinite, logo-glow 2s ease-in-out infinite alternate;
    box-shadow: 0 0 16px 2px #e6394655;
}

@keyframes logo-spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}
@keyframes logo-glow {
    0% { box-shadow: 0 0 16px 2px #e6394655; }
    100% { box-shadow: 0 0 32px 8px #457b9d88; }
}

body {
    background-color: #262626;
    background-image: url('zxa-logo.png');
    background-repeat: repeat;
    background-size: 120px 120px;
    opacity: 1;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(38,38,38,0.92);
}