:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --text-color: #212529;
    --border-radius: 6px;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    /* Background Image Only */
    background-image: url("images/background.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
}

.header h1 { 
    margin: 0; 
    font-size: 2rem; 
    font-weight: 700; 
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.container { 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 0 1rem 1rem; 
    flex: 1;
}
h2 { 
    font-size: 1.25rem; 
    color: var(--text-color); 
    border-bottom: 1px solid var(--medium-gray); 
    padding-bottom: 0.5rem; 
    margin-top: 0; 
}
.step { 
    margin-bottom: 1.5rem; 
    padding: 1.5rem; 
    border: 1px solid rgba(0, 0, 0, 0.1); 
    border-radius: var(--border-radius); 
    background-color: rgba(255, 255, 255, 0.95); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px); 
}
label { 
    display: block; 
    font-weight: 600; 
    margin-bottom: 0.5rem; 
}
input[type="text"], select { 
    width: 100%; 
    padding: 0.75rem; 
    border: 1px solid #ced4da; 
    border-radius: var(--border-radius); 
    box-sizing: border-box; 
    font-size: 1rem; 
    transition: border-color 0.2s, box-shadow 0.2s; 
}
input[type="text"]:focus, select:focus { 
    border-color: var(--primary-color); 
    outline: 0; 
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25); 
}
button { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    background-color: var(--primary-color); 
    color: white; 
    padding: 0.75rem 1.5rem; 
    border: none; 
    border-radius: var(--border-radius); 
    cursor: pointer; 
    font-size: 1rem; 
    font-weight: 600; 
    transition: background-color 0.2s, transform 0.1s; 
}
button:hover:not(:disabled) { 
    background-color: var(--primary-hover); 
    transform: translateY(-1px); 
}
button:active:not(:disabled) {
    transform: translateY(0);
}
button:disabled { 
    background-color: #a0c7e8; 
    cursor: not-allowed; 
    opacity: 0.7; 
}
#mac-list { 
    margin-top: 1rem; 
    max-height: 200px; 
    overflow-y: auto; 
    border: 1px solid var(--medium-gray); 
    padding: 0.5rem; 
    background: var(--light-gray); 
    border-radius: var(--border-radius); 
}
.mac-item { 
    display: block; 
    padding: 0.75rem; 
    cursor: pointer; 
    border-radius: 4px; 
    transition: background-color 0.2s; 
}
.mac-item:hover { 
    background-color: #dde8f5; 
}
.mac-item input { 
    margin-right: 10px; 
}
#customer-info { 
    padding: 1rem; 
    border-radius: var(--border-radius); 
    font-weight: 500; 
}
#customer-info.success { 
    background-color: #d1e7dd; 
    color: #0f5132; 
    border: 1px solid #badbcc; 
}
#customer-info.error { 
    background-color: #f8d7da; 
    color: #842029; 
    border: 1px solid #f5c2c7; 
}

#status-log { 
    margin-top: 2rem; 
    padding: 1rem; 
    background-color: rgba(33, 37, 41, 0.9); 
    color: #f8f9fa; 
    border-radius: var(--border-radius); 
    font-family: "SF Mono", "Fira Code", "Courier New", monospace; 
    font-size: 0.9rem; 
    white-space: pre-wrap; 
    min-height: 100px; 
    max-height: 300px; 
    overflow-y: auto; 
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px); 
}
.log-entry { 
    display: block; 
    padding: 0.3rem 0; 
    border-bottom: 1px solid #495057; 
    margin-bottom: 0.25rem; 
}
.log-entry:last-child { 
    border-bottom: none; 
}
.hidden { 
    display: none; 
}
.log-entry.error { 
    color: #ffadad; 
} /* Lighter red for dark background */
.log-entry.success { 
    color: #a7f3d0; 
} /* Lighter green for dark background */

/* Footer Styles */
.footer {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    text-align: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .container {
        margin: 0 auto;
        padding: 0 0.75rem 1rem;
    }
    .header { 
        padding: 1.5rem 0.75rem; 
    }
    .header h1 { 
        font-size: 1.75rem; 
    }
    .step { 
        padding: 1.25rem; 
    }
    .footer {
        padding: 0.75rem;
    }
    .footer p {
        font-size: 0.8rem;
    }
}