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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

header {
    background-color: white;
    padding: 30px 40px;
    border-bottom: 1px solid #eee;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 70px;
    width: auto;
}

main {
    padding: 40px;
}

.form-header {
    background-color: #f8f9fa;
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 4px;
    border-left: 4px solid #F5CB5C;
}

.form-group {
    margin-bottom: 16px;
}

.form-header .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #F5CB5C;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(245, 203, 92, 0.15);
}

.table-container {
    margin: 30px 0;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

thead {
    background-color: #F5CB5C;
    color: #000;
}

th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000;
}

tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: #fafafa;
}

td {
    padding: 12px;
}

td input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #fafafa;
}

td input:focus {
    outline: none;
    border-color: #F5CB5C;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(245, 203, 92, 0.15);
}

.row-number {
    font-weight: 600;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.delete-btn {
    background-color: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 20px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.delete-btn:hover {
    background-color: #fee2e2;
    color: #dc3545;
}

tfoot tr {
    background-color: #F5CB5C;
    color: #000;
    font-weight: bold;
}

tfoot td {
    padding: 16px 12px;
}

.total-label {
    text-align: right;
    font-size: 15px;
    color: #000;
    font-weight: 600;
}

.total-value {
    font-size: 17px;
    color: #000;
    font-weight: 700;
}

.button-group {
    margin: 24px 0;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: #2d7a4f;
    color: white;
    box-shadow: 0 2px 8px rgba(45, 122, 79, 0.25);
}

.btn-primary:hover {
    background-color: #236b42;
    box-shadow: 0 4px 12px rgba(45, 122, 79, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #F5CB5C;
    color: #000;
    box-shadow: 0 2px 8px rgba(245, 203, 92, 0.25);
}

.btn-secondary:hover {
    background-color: #E8BE4E;
    box-shadow: 0 4px 12px rgba(245, 203, 92, 0.35);
    transform: translateY(-1px);
}

.btn-danger {
    background-color: white;
    color: #dc3545;
    border: 2px solid #dc3545;
}

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

.action-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

footer {
    text-align: center;
    padding: 24px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 14px;
}

@media (max-width: 768px) {
    .container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    main {
        padding: 20px;
    }

    header {
        padding: 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 10px 8px;
    }
}

/* Login Overlay Styles */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.login-overlay.hidden {
    display: none;
}

.login-modal {
    background: white;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.login-logo {
    margin-bottom: 24px;
}

.login-modal h2 {
    color: #333;
    margin-bottom: 12px;
    font-size: 24px;
}

.login-modal p {
    color: #666;
    margin-bottom: 24px;
    font-size: 14px;
}

.login-modal form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-modal input[type="password"] {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fafafa;
    text-align: center;
}

.login-modal input[type="password"]:focus {
    outline: none;
    border-color: #F5CB5C;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(245, 203, 92, 0.15);
}

.login-error {
    color: #dc3545;
    font-size: 14px;
    min-height: 20px;
    margin: 0;
}

.container.hidden {
    display: none;
}
