/* PO List Action Buttons */
/* PO List Action Buttons - Match produce.html style */
.btn-action {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 15px;
    margin: 0 2px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(44, 75, 124, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-action:hover {
    background: var(--secondary-blue);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(44, 75, 124, 0.15);
}
.btn-action:active {
    background: var(--light-blue);
    color: var(--white);
}
.btn-action.btn-delete {
    background: var(--error-red);
    color: var(--white);
}
.btn-action.btn-delete:hover {
    background: #c0392b;
    color: var(--white);
}
.btn-action.btn-payment {
    background: var(--success-green);
    color: var(--white);
}
.btn-action.btn-payment:hover {
    background: #219150;
    color: var(--white);
}
.btn-action.btn-print {
    background: var(--light-blue);
    color: var(--white);
}
.btn-action.btn-print:hover {
    background: var(--primary-blue);
    color: var(--white);
}
/* Theme Colors */
:root {
    --primary-blue: #2C4B7C;
    --secondary-blue: #34568B;
    --light-blue: #3A5F94;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --text-gray: #666666;
    --error-red: #E74C3C;
    --success-green: #27AE60;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo-container {
    margin-bottom: 40px;
}

.logo {
    width: 120px;
    height: 120px;
    /* Removed filter to show white logo correctly */
}

.login-form {
    background: transparent;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group .icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 18px;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    background: var(--white);
    color: var(--text-gray);
    outline: none;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: #AAAAAA;
}

.input-group input:focus {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.login-btn {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    background: var(--white);
    color: var(--primary-blue);
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.login-btn:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.login-btn:active {
    transform: translateY(0);
}

.forgot-password {
    margin-top: 20px;
}

.forgot-password a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.forgot-password a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.message.error {
    background: rgba(231, 76, 60, 0.9);
    color: var(--white);
    display: block;
}

.message.success {
    background: rgba(39, 174, 96, 0.9);
    color: var(--white);
    display: block;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        max-width: 100%;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .input-group input {
        padding: 15px 15px 15px 50px;
        font-size: 14px;
    }
    
    .login-btn {
        padding: 12px;
        font-size: 15px;
    }
}

/* Footer Styles */
.user-footer {
    background: var(--background-gray);
    border-top: 1px solid var(--border-color);
    padding: 12px 20px;
    margin-top: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-gray);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.user-footer .user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-footer .user-info .user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

.user-footer .user-info .user-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.user-footer .user-info .user-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 13px;
}

.user-footer .user-info .user-meta {
    font-size: 11px;
    color: var(--text-gray);
}

.user-footer .system-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 11px;
}

.user-footer .system-info .time-display {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Ensure main content doesn't overlap footer */
body {
    padding-bottom: 60px;
}

/* Table header styling */
.table thead th {
    background-color: var(--primary-blue, #063970);
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 12px;
    border-bottom: 2px solid rgba(255,255,255,0.15);
    white-space: nowrap;
}

.table tbody tr:hover {
    background-color: #f0f6ff;
}

.table tbody tr td {
    vertical-align: middle;
    padding: 9px 12px;
}

@media (max-width: 768px) {
    .user-footer {
        padding: 10px 15px;
        font-size: 11px;
    }
    
    .user-footer .user-info {
        gap: 10px;
    }
    
    .user-footer .system-info {
        gap: 10px;
        font-size: 10px;
    }
    
    body {
        padding-bottom: 70px;
    }
}
