:root {
    --primary-color: #111827;   /* dark slate */
    --secondary-color: #065f46; /* deep green */
    --accent-color: #10b981;    /* emerald */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 30px;
}

header h1 {
    margin-bottom: 20px;
    font-size: 28px;
}

nav {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.nav-btn.active {
    background: white;
    color: #667eea;
    border-color: white;
    font-weight: bold;
}

.page {
    display: none;
    padding: 40px;
}

.page.active {
    display: block;
}

.wizard {
    max-width: 900px;
    margin: 0 auto;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.step.active .step-number {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.step.completed .step-number {
    background: #4caf50;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.step.active .step-label {
    color: #667eea;
    font-weight: bold;
}

.wizard-content {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    min-height: 400px;
}

.wizard-content h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #4caf50;
    color: white;
}

.btn-success:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.btn-danger {
    background: #f44336;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-danger:hover {
    background: #da190b;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.server-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #667eea;
}

.server-form h3 {
    color: #667eea;
    margin-bottom: 20px;
}

.pricing-selector {
    display: none;
    background: white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.pricing-selector h4 {
    margin-bottom: 15px;
    color: #333;
}

.pricing-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pricing-item input[type="checkbox"] {
    width: auto;
}

.pricing-item label {
    flex: 1;
    margin: 0;
}

.pricing-item input[type="number"] {
    width: 100px;
}

.additional-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    position: relative;
}

.remove-item {
    position: absolute;
    top: 10px;
    right: 10px;
}

.review-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.review-section h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.review-section p {
    margin-bottom: 8px;
    color: #333;
}

.review-section strong {
    color: #667eea;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
}

table th {
    background: #667eea;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 500;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

table tr:hover {
    background: #f5f5f5;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

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

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.proposal-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.proposal-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.proposal-card h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.proposal-card p {
    color: #666;
    margin-bottom: 5px;
}

.proposal-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.total-summary {
    background: #667eea;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.total-summary h3 {
    margin-bottom: 10px;
}

.total-summary p {
    font-size: 18px;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .wizard-steps {
        flex-wrap: wrap;
    }
    
    .step {
        flex: 0 0 50%;
        margin-bottom: 20px;
    }
    
    .nav {
        flex-direction: column;
    }
    
    .wizard-actions {
        flex-direction: column;
        gap: 10px;
    }
}

/* Branding & Settings Styles */
.settings-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Login Page Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.login-box h2 {
    color: #667eea;
    margin-bottom: 10px;
    text-align: center;
}

.login-box p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.settings-section {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.settings-section h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 20px;
}

.helper-text {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 15px;
}

.logo-upload-container {
    text-align: center;
}

.current-logo {
    padding: 30px;
    background: white;
    border: 2px dashed #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.current-logo img {
    margin-bottom: 10px;
}

#no-logo-text {
    color: #999;
    font-size: 16px;
}

.color-picker-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-picker-group input[type="color"] {
    width: 80px;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.color-picker-group input[type="text"] {
    flex: 1;
    text-transform: uppercase;
}

.branding-preview {
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #ddd;
}

#preview-logo img {
    max-width: 200px;
    max-height: 100px;
    margin-bottom: 20px;
}

#preview-company-name {
    color: #333;
    margin-bottom: 10px;
}

#preview-company-info {
    color: #666;
    font-size: 14px;
}
