:root {
    --primary-color: #00a8ff;
    --secondary-color: #0084ff;
    --accent-color: #00c3ff;
    --success-color: #00b0ff;
    --danger-color: #ff3366;
    --background-color: #001e3c;
    --card-bg: rgba(0, 168, 255, 0.1);
    --text-color: #ffffff;
    --text-secondary: #b2e5ff;
    --border-radius: 12px;
    --glow: 0 0 20px rgba(0, 168, 255, 0.4);
    --card-border: 1px solid rgba(0, 168, 255, 0.3);
    --soft-blue-bg: rgba(0, 168, 255, 0.1);  /* Very light blue background */
    --glass-bg: rgba(0, 30, 60, 0.2);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 168, 255, 0.1);
    --glass-blur: blur(12px);
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    background: var(--background-color);
    color: var(--text-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 168, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 195, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 132, 255, 0.1) 0%, transparent 70%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 60px;
    margin-left: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2rem auto;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    color: var(--text-color);
    padding: 1.8rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: visible;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.header-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 15px;
    max-width: 100%;
    min-height: 140px;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.company-name {
    display: none;
}

header h1 {
    display: flex;
    align-items: center;
    gap: 35px;
    font-size: 3rem;
    font-weight: 500;
    margin: 0;
    margin-left: 20px;
    padding: 8px 0;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 168, 255, 0.6);
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 140px;
}

/* Remove gap since we only have one line now */
.header-line1 {
    font-size: 3rem;
    white-space: nowrap;
}

.vietphu-logo {
    height: 140px;
    min-height: 140px;
    width: auto;
    margin: 0 25px;
    filter: brightness(0) invert(1) sepia(100%) saturate(1000%) hue-rotate(190deg);
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.vietphu-logo:hover {
    filter: brightness(1.2) invert(1) sepia(100%) saturate(1000%) hue-rotate(190deg);
    transform: scale(1.1);
    z-index: 3;
}

.card {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: none !important;
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px 0 rgba(0, 168, 255, 0.2);
    animation: pulse 2s infinite;
}

.card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.4);
    text-align: left;
}

/* Scanner section styles - outer box */
.scanner-section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--glass-shadow);
    border: var(--glass-border);
}

/* Scanner section heading */
.scanner-section h2 {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.4);
    margin-bottom: 1rem;
    text-align: left;
}

/* Scanner content styles - inner box */
.scanner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--soft-blue-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 168, 255, 0.3);
}

#reader {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(0, 168, 255, 0.3);
    background: var(--soft-blue-bg);
}

#result {
    padding: 0.5rem;
    text-align: center;
    min-height: 40px;
}

/* Update text colors for better contrast */
.scan-instructions {
    padding: 1rem;
    background: rgba(0, 168, 255, 0.2);  /* Match camera button */
    border-radius: var(--border-radius);
    border: 2px solid rgba(0, 168, 255, 0.4);  /* Match camera button */
    margin-top: 0.5rem;
}

.scan-instructions p {
    color: white;  /* Changed to white for first line */
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);  /* Updated shadow to match white text */
    font-weight: 500;  /* Added slightly bolder weight */
}

.scan-instructions ul {
    list-style: none;
    padding: 0;
}

.scan-instructions li {
    color: var(--primary-color);  /* Keep list items light blue */
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 168, 255, 0.2);
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.4);
}

.scan-instructions li:last-child {
    border-bottom: none;
}

.search-bar {
    margin-bottom: 1rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 15px;
    border-radius: var(--border-radius);
    border: var(--glass-border);
}

#searchInput {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    border: 1px solid rgba(0, 168, 255, 0.3);
    border-radius: var(--border-radius);
    background: var(--soft-blue-bg);
    color: var(--text-color);
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.2);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1rem 0;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 168, 255, 0.2);
}

th {
    background: rgba(0, 168, 255, 0.15);
    font-weight: 600;
    color: #00a8ff;
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
}

tr:hover {
    background: rgba(0, 168, 255, 0.1);
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(0, 168, 255, 0.15);
    color: var(--text-color);
    border: 1px solid rgba(0, 168, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.2);
    text-shadow: 0 0 5px rgba(0, 168, 255, 0.5);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.4);
    background: rgba(0, 168, 255, 0.25);
}

.btn-edit {
    background-color: #00a8ff;
    color: white;
}

.btn-edit:hover {
    background-color: #0084ff;
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.4);
}

.btn-delete {
    background: rgba(255, 23, 68, 0.15);
    border-color: rgba(255, 23, 68, 0.4);
}

.btn-delete:hover {
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.4);
    background: rgba(255, 23, 68, 0.25);
}

.login-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-content {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 30px;
    border-radius: var(--border-radius);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    width: 100%;
    max-width: 400px;
}

.login-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 168, 255, 0.2);
}

.dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.error-message {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Futuristic scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 168, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.4);
}

/* Loading animation */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 168, 255, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.3);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Glassmorphism effect for modals */
.modal-backdrop {
    backdrop-filter: blur(8px);
    background: rgba(10, 25, 47, 0.8);
}

/* Neon text effect for important status */
.status-pending {
    color: #0084ff;
    text-shadow: 0 0 10px rgba(0, 195, 255, 0.6);
}

.status-approved {
    color: #00c3ff;
    text-shadow: 0 0 10px rgba(0, 132, 255, 0.6);
}

.status-rejected {
    color: #ff1744;
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.6);
}

.component-list {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    border: var(--glass-border);
}

.search-bar {
    margin-bottom: 1rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 15px;
    border-radius: var(--border-radius);
    border: var(--glass-border);
}

#searchInput {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    border: 1px solid rgba(0, 168, 255, 0.3);
    border-radius: var(--border-radius);
    background: var(--soft-blue-bg);
    color: var(--text-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

th {
    background-color: #f8f8f8;
}

.btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-edit {
    background-color: #00a8ff;
    color: white;
}

.btn-delete {
    background-color: #f44336;
    color: white;
}

.user-section {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.user-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.approvers, .requesters {
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 5px;
}

#userInfo {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    align-items: center;
}

.request-actions {
    margin-top: 10px;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 5px;
    background-color: white;
    border-radius: 4px;
}

.login-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dialog-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}

#newNameInput {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.login-dialog {
    min-width: 300px;
}

.login-dialog h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.4);
    font-weight: 500;
}

.login-dialog p {
    color: #666;
    margin-bottom: 10px;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.error-message {
    background: rgba(255, 23, 68, 0.15);
    border: 1px solid rgba(255, 23, 68, 0.3);
    color: #ff4081;
    padding: 10px;
    border-radius: var(--border-radius);
    margin: 10px 0;
    text-shadow: 0 0 8px rgba(255, 23, 68, 0.3);
}

.user-actions {
    display: flex;
    gap: 8px;
}

.login-form {
    min-width: 300px;
}

#userId {
    text-transform: uppercase;
}

/* Add pulsing animation to important elements */
@keyframes pulse {
    0% {
        box-shadow: 0 0 10px rgba(0, 168, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 168, 255, 0.4);
    }
    100% {
        box-shadow: 0 0 10px rgba(0, 168, 255, 0.2);
    }
}

/* Unified heading styles */
h1, h2, h3, 
.scanner-section h2,
.component-list h2,
.login-dialog h3 {
    color: var(--primary-color);  /* Light blue */
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.4);
    margin-bottom: 1rem;
    font-weight: 500;
}

.helper-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Style for the request quantity input */
#requestQuantity {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(0, 168, 255, 0.4);
    border-radius: var(--border-radius);
    background: rgba(0, 30, 60, 0.9);
    color: var(--text-color);
}

#requestQuantity::-webkit-inner-spin-button,
#requestQuantity::-webkit-outer-spin-button {
    opacity: 1;
}

/* Login status tooltip styling */
.login-status {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 30, 60, 0.9);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    border: var(--card-border);
    margin-right: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(5px);
    box-shadow: var(--glow);
}

/* Show login status on hover */
#loginBtn:hover + .login-status,
#logoutBtn:hover + .login-status,
.login-status:hover {
    opacity: 1;
    visibility: visible;
}

/* Enhanced button styling */
#loginBtn, #logoutBtn {
    background: rgba(0, 168, 255, 0.15);
    border: 1px solid rgba(0, 168, 255, 0.4);
    padding: 10px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#loginBtn:hover, #logoutBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.4);
    background: rgba(0, 168, 255, 0.25);
}

/* Add glow effect on input focus */
.form-group input:focus {
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 10px rgba(0, 168, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 168, 255, 0.4);
    }
    100% {
        box-shadow: 0 0 10px rgba(0, 168, 255, 0.2);
    }
}

/* Style for autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #00a8ff;
    -webkit-box-shadow: 0 0 0px 1000px rgba(144, 255, 209, 0.15) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Remove these unused logo-related styles */
.logo-container,
.logo {
    display: none;
}

.forgot-password-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    padding: 5px 0;
    cursor: pointer;
    display: block;
    margin-top: 5px;
    text-align: right;
    width: 100%;
    transition: all 0.3s ease;
}

.forgot-password-btn:hover {
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.4);
    color: #fff;
}

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

.settings-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

#settingsBtn {
    background: rgba(0, 168, 255, 0.15);
    border: 1px solid rgba(0, 168, 255, 0.4);
    padding: 10px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#settingsBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.4);
    background: rgba(0, 168, 255, 0.25);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 500;
}

/* Style for phone number input */
#phoneNumber {
    width: 100%;
    padding: 12px;
    background: rgba(144, 255, 209, 0.15);
    border: 1px solid rgba(0, 168, 255, 0.3);
    border-radius: var(--border-radius);
    color: #00a8ff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#phoneNumber:focus {
    outline: none;
    background: rgba(144, 255, 209, 0.25);
    border-color: rgba(0, 168, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.2);
}

/* Style for phone input in forgot password dialog */
#forgotPhone {
    width: 100%;
    padding: 12px;
    background: rgba(144, 255, 209, 0.15);
    border: 1px solid rgba(0, 168, 255, 0.3);
    border-radius: var(--border-radius);
    color: #00a8ff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#forgotPhone:focus {
    outline: none;
    background: rgba(144, 255, 209, 0.25);
    border-color: rgba(0, 168, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.2);
}

#forgotPhone::placeholder {
    color: rgba(0, 168, 255, 0.5);
}

/* Users page styles */
.users-page {
    margin-bottom: 2rem;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.user-section {
    background: rgba(0, 30, 60, 0.4);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 168, 255, 0.2);
}

.user-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.4);
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-card {
    background: rgba(0, 30, 60, 0.8);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 168, 255, 0.3);
    transition: all 0.3s ease;
}

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.2);
    border-color: rgba(0, 168, 255, 0.5);
}

.user-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-info-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.user-info-value {
    color: var(--primary-color);
    font-weight: 500;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

#usersBtn {
    background: rgba(0, 168, 255, 0.15);
    border: 1px solid rgba(0, 168, 255, 0.4);
    padding: 10px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#usersBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.4);
    background: rgba(0, 168, 255, 0.25);
}

/* Profile page styles */
.profile-page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.profile-info {
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: var(--glass-border);
}

.info-group {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    color: var(--text-color);
}

.stat-card {
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: var(--glass-border);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    font-weight: 600;
    font-size: 1.1rem;
}

.status-pending {
    color: #f0ad4e;
}

.status-approved {
    color: #5cb85c;
}

.status-rejected {
    color: #d9534f;
}

/* Scan request dialog styles */
.scan-request-dialog {
    max-width: 500px;
}

.scanned-info {
    background: rgba(0, 30, 60, 0.4);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 168, 255, 0.2);
}

#requestReason {
    width: 100%;
    padding: 12px;
    background: rgba(144, 255, 209, 0.15);
    border: 1px solid rgba(0, 168, 255, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 1rem;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

#requestReason:focus {
    outline: none;
    background: rgba(144, 255, 209, 0.25);
    border-color: rgba(0, 168, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.2);
}

#requestReason::placeholder {
    color: rgba(0, 168, 255, 0.5);
}

/* Update camera button styles */
.camera-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 1.1rem;
    background: rgba(0, 168, 255, 0.2);
    border: 2px solid rgba(0, 168, 255, 0.4);
    margin-bottom: 1rem;
    width: fit-content;
}

.camera-icon {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    transition: all 0.3s ease;
}

.camera-btn:hover .camera-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(0, 168, 255, 0.6));
}

/* Add styles for the clickable logo */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 25px;
    transition: all 0.3s ease;
}

.logo-link:hover .vietphu-logo {
    transform: scale(1.1);
    filter: brightness(1.2) invert(1) sepia(100%) saturate(1000%) hue-rotate(190deg);
}

.logo-link:hover {
    text-shadow: 0 0 30px rgba(0, 168, 255, 0.8);
}

/* Update table styles for notes column */
.table-responsive {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

#componentTable td:nth-child(7) { /* Notes column */
    max-width: 200px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

#componentTable th, #componentTable td {
    border-right: 1px solid rgba(0, 168, 255, 0.2);
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 168, 255, 0.2);
}

/* Remove border from last column */
#componentTable th:last-child,
#componentTable td:last-child {
    border-right: none;
}

/* Update table header background */
th {
    background: rgba(0, 168, 255, 0.15);
    border-right: 1px solid rgba(0, 168, 255, 0.3);
}

/* Add sidebar styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: var(--glass-border);
    transition: all 0.3s ease;
    z-index: 1000;
    width: 250px;
    transform: translateX(-250px);
}

.sidebar:hover,
.sidebar.expanded {
    transform: translateX(0);
    box-shadow: 5px 0 30px rgba(0, 168, 255, 0.2);
}

.sidebar-toggle {
    position: absolute;
    right: -50px;
    top: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--glass-bg);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    border: var(--glass-border);
    border-left: none;
    z-index: 1001;
}

.menu-icon {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
}

.sidebar-content {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.user-info-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 168, 255, 0.2);
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-info-mini:hover {
    background: rgba(0, 168, 255, 0.1);
    padding: 20px 10px;
    border-radius: var(--border-radius);
}

.user-info-mini:hover .user-avatar {
    transform: scale(1.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 168, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 168, 255, 0.3);
}

.user-avatar svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    stroke-width: 1.5;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(0, 168, 255, 0.1);
    transform: translateX(5px);
}

.nav-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    stroke-width: 1.5;
}

/* Add styles for component header and dialog */
.component-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

#addComponentBtn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-component-dialog {
    max-width: 500px;
}

.add-component-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 1rem;
}

.form-row label {
    color: var(--text-secondary);
}

.form-row input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(0, 30, 60, 0.4);
    border: 1px solid rgba(0, 168, 255, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-color);
}

.form-row input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.2);
}

/* Update nav item icon styles */
.nav-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    stroke-width: 1.5;
}

/* Add hover effect */
.nav-item:hover svg {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Add hover effect */
.card:hover,
.scanner-section:hover,
.component-list:hover {
    background: rgba(0, 30, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 168, 255, 0.2);
}

/* Update section header styles */
.section-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;  /* Left align */
}

.section-header h2 span {
    text-align: left;  /* Left align text */
    flex: initial;  /* Remove flex grow */
}

/* Update component header styles */
.component-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;  /* Left align */
}

/* Keep system heading centered */
.header-content {
    display: flex;
    justify-content: flex-start;  /* Changed from center to flex-start */
    align-items: center;
    padding-left: 20px;  /* Added padding for left spacing */
}

/* Update card headings */
.card h2 {
    text-align: left;  /* Left align all card headings */
}

/* Update request section heading */
.request-section h2 {
    text-align: left;
}

/* Update scanner section heading */
.scanner-section h2 {
    text-align: left;
}

/* Update hover effects */
.section-header:hover .qr-icon:first-child {
    transform: rotate(-10deg) scale(1.1);
}

.section-header:hover .qr-icon:last-child {
    transform: rotate(10deg) scale(1.1);
}

/* Add QR icon styles */
.qr-icon {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    stroke-width: 1.5;
}

/* Add hover effect */
.section-header:hover .qr-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Add request icon styles */
.request-icon {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    stroke-width: 1.5;
    min-width: 24px;  /* Add this to prevent icon from stretching */
}

/* Update hover effect for request icon */
.section-header:hover .request-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Add storage icon styles */
.storage-icon {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    stroke-width: 1.5;
    min-width: 24px;  /* Prevent stretching */
}

/* Update component header styles */
.component-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Add hover effect */
.component-header:hover .storage-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Add styles for instruction item with icon */
.instruction-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.approval-icon {
    width: 16px;
    height: 16px;
    stroke: var(--primary-color);
    stroke-width: 2;
}

/* Add hover effect */
.instruction-item:hover .approval-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Add styles for small request icon */
.request-icon-small {
    width: 16px;
    height: 16px;
    stroke: var(--primary-color);
    stroke-width: 2;
}

/* Update hover effect for both icons */
.instruction-item:hover .approval-icon,
.instruction-item:hover .request-icon-small {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Update instruction header styles */
.instruction-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.instruction-header span {
    font-size: 1.1rem;  /* Increased from default */
    font-weight: 500;   /* Added medium weight */
    letter-spacing: 0.2px;  /* Added slight letter spacing */
}

.instruction-icon {
    width: 18px;  /* Slightly increased to match larger text */
    height: 18px;
    stroke: white;
    stroke-width: 2;
    margin-top: 2px;  /* Align with larger text */
}

/* Add hover effect */
.instruction-header:hover .instruction-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Add professional form styles */
.request-form {
    background: white;
    color: #333;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 20px auto;
    position: relative;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.form-logo {
    height: 80px;
    width: auto;
}

.form-meta {
    text-align: right;
    font-size: 0.9rem;
}

.form-number {
    font-weight: 600;
    color: #00a8ff;
    margin-bottom: 5px;
}

.form-title {
    text-align: center;
    color: #00a8ff;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.form-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    margin-bottom: 15px;
    align-items: center;
}

.form-row label {
    font-weight: 500;
    color: #666;
}

.form-signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.signature-section {
    text-align: center;
    width: 200px;
}

.signature-title {
    font-weight: 600;
    color: #00a8ff;
    margin-bottom: 20px;
}

.signature-box {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #eee;
}

.signature-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.signature-position {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.signature-date {
    color: #999;
    font-size: 0.8rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

.status-pending {
    color: #f0ad4e;
}

.status-approved {
    color: #5cb85c;
}

.status-rejected {
    color: #d9534f;
}

/* Print styles */
@media print {
    .form-actions {
        display: none;
    }
    
    .request-form {
        box-shadow: none;
        margin: 0;
        padding: 20px;
    }
}

/* Add signature pad styles */
.signature-pad-container {
    width: 100%;
    margin-bottom: 10px;
}

.signature-pad {
    width: 100%;
    height: 100px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    touch-action: none;
}

.signature-pad-actions {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

.btn-small {
    padding: 4px 8px;
    font-size: 0.8rem;
}

.saved-signature {
    max-width: 100%;
    max-height: 100px;
    margin-bottom: 10px;
}

/* Update signature box styles */
.signature-box {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #eee;
}

/* Add touch device optimization */
@media (pointer: coarse) {
    .signature-pad {
        height: 150px; /* Larger area for touch devices */
    }
    
    .btn-small {
        padding: 8px 16px; /* Larger touch targets */
        font-size: 1rem;
    }
}

/* Add notification styles */
#notificationContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.notification-toast {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--glass-shadow);
    animation: slideIn 0.3s ease;
}

.notification-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-icon {
    width: 20px;
    height: 20px;
    stroke: var(--primary-color);
}

.notification-title {
    color: var(--primary-color);
    font-weight: 500;
}

.notification-toast p {
    color: var(--text-color);
    margin: 0;
}

.notification-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Add responsive styles */
@media (max-width: 768px) {
    #notificationContainer {
        width: 90%;
        right: 5%;
    }

    .container {
        margin-left: 0;
        margin-top: 80px;
        padding: 10px;
    }

    .card {
        max-width: 100%;
        margin: 0 auto 1rem auto;
        padding: 1rem;
    }

    /* Adjust table for mobile */
    .table-responsive {
        max-width: 100%;
        overflow-x: auto;
    }

    /* Center header content */
    .header-content {
        justify-content: center;
        text-align: center;
    }

    /* Adjust header padding */
    header {
        padding: 1.2rem 0.8rem;
        width: 100vw; /* Full viewport width */
        max-width: 100%; /* Override max-width */
        margin: 0 0 1rem 0; /* Remove horizontal margins */
        border-radius: 0; /* Remove border radius on mobile */
    }

    .header-content {
        padding: 0 10px;
        justify-content: flex-start;
        width: 100%;
        overflow-x: visible; /* Changed from auto to visible */
    }

    header h1 {
        font-size: 2rem;
        gap: 15px;
        margin-left: 10px;
        line-height: 1.2;
    }

    .header-text {
        gap: 10px;
    }

    .header-line1, .header-line2 {
        font-size: 2rem;
    }

    .vietphu-logo {
        height: 100px;
        min-height: 100px;
        margin: 0 15px;
    }

    .header-content {
        min-height: 100px;
    }

    .header-text {
        height: 100px;
        gap: 10px;
    }
}

/* Add styles for very small screens */
@media (max-width: 480px) {
    header {
        padding: 1rem 0.5rem;
    }

    .header-content {
        padding: 0 5px;
    }

    .header-text {
        gap: 8px;
    }

    .header-line1, .header-line2 {
        font-size: 1.6rem;
    }

    .vietphu-logo {
        height: 80px;
        min-height: 80px;
        margin: 0 10px;
    }

    .header-content {
        min-height: 80px;
    }

    .header-text {
        height: 80px;
        gap: 8px;
    }
}

/* iOS-specific fixes */
@supports (-webkit-touch-callout: none) {
    header {
        -webkit-transform: translateZ(0); /* Prevent Safari rendering issues */
    }

    .header-content {
        -webkit-transform: translateZ(0);
    }
}

/* Update sub-header styles */
.sub-header {
    width: 100%;
    max-width: 900px;
    margin-bottom: 2rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    border: none !important;
}

.sub-header-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sub-header h2 {
    width: 100%;
    margin: 0;
    padding: 2rem;
    background: var(--background-color);
    text-align: center;
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.4);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: none;
}

.gear-icon {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 8px rgba(0, 168, 255, 0.4));
    animation: spin 20s linear infinite;
}

.materials-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Update Materials header styles */
.sub-header {
    width: 100%;
    max-width: 900px;
    margin-bottom: 2rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    border: none !important;
}

.sub-header h2 {
    width: 100%;
    margin: 0;
    padding: 2rem;
    background: var(--background-color);
    text-align: center;
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.4);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: none;
}

/* Update sub-cards under Materials */
.materials-content .card {
    background: var(--background-color);
    padding: 1.5rem;
    width: 100%;
    margin-bottom: 1.5rem;
    border: none !important;
}

.materials-content .card h2 {
    font-size: 1.8rem;
    padding: 0 0 1rem 0;
    margin: 0;
    background: var(--background-color);
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    border: none;
}

/* Update specific card headers */
.component-header, 
.section-header,
.profile-header {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.component-header h2,
.section-header h2,
.profile-header h2 {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 0 1rem 0;
    margin: 0;
    border: none;
}

/* Adjust content padding */
.materials-content .card > *:not(h2) {
    padding-top: 1rem;
}

/* Keep the main Materials header centered and bordered */
.sub-header h2 {
    justify-content: center;
    border: none !important;
    border-bottom: none !important;
}

/* Add factory icon styles */
.factory-icon {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 8px rgba(0, 168, 255, 0.4));
}

/* Add production content styles */
.production-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
}

/* Update spacing between main sections */
.sub-header + .sub-header {
    margin-top: 3rem;
}

/* Make only main headers uppercase */
.sub-header > .sub-header-content > h2 {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Reset text transform for subheaders */
.materials-content .card h2,
.production-content .card h2 {
    text-transform: none;
    letter-spacing: normal;
}

/* Machine category styles */
.machine-category {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    text-align: left;
}

.category-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    color: var(--primary-color);
    justify-content: flex-start;
}

/* Machine icons */
.machine-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
}

/* Update production section and machine categories */
.production-content .card {
    background: var(--background-color);
    padding: 1.5rem;
    width: 100%;
    margin-bottom: 1.5rem;
    border: none !important;
    box-shadow: var(--glass-shadow);
}

.production-content .card h2 {
    font-size: 1.8rem;
    padding: 0 0 1rem 0;
    margin: 0;
    background: var(--background-color);
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    border: none;
}

/* Update machine category styles */
.machine-category {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    text-align: left;
    border: none;
    background: var(--background-color);
}

.category-header {
    border: none;
    padding: 0;
    margin: 0;
}

.category-header h2 {
    border: none;
    padding: 0;
    margin: 0;
}

/* Remove all dividing lines between headers and content */
.sub-header h2 {
    justify-content: center;
    border: none !important;
    border-bottom: none !important;
}

/* Remove any remaining borders from all headers */
.sub-header,
.sub-header h2,
.materials-content .card h2,
.production-content .card h2,
.component-header h2,
.section-header h2,
.profile-header h2,
.category-header h2 {
    border: none !important;
    border-bottom: none !important;
}

/* Remove borders from header containers */
.sub-header,
.component-header,
.section-header,
.profile-header,
.category-header {
    border: none !important;
    border-bottom: none !important;
}

/* Remove the specific line from Materials header */
.sub-header h2 {
    justify-content: center;
    border: none !important;
    border-bottom: none !important;
}