/* DziriPay Installer Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Tahoma', 'Cairo', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    direction: rtl;
    padding: 20px 0;
}
.installer {
    max-width: 900px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.installer-header {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6741 100%);
    color: #fff;
    padding: 30px 40px;
    text-align: center;
}
.installer-header h1 {
    font-size: 28px;
    margin-bottom: 6px;
}
.installer-header p { opacity: .85; }
.installer-steps {
    display: flex;
    background: #f7f8fc;
    padding: 18px 30px;
    overflow-x: auto;
    gap: 8px;
    border-bottom: 1px solid #e3e5ee;
}
.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 24px;
    background: #fff;
    border: 2px solid #e3e5ee;
    font-size: 13px;
    white-space: nowrap;
}
.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3e5ee;
    color: #6b7280;
    font-weight: bold;
}
.step-active {
    border-color: #667eea;
    background: #eef0ff;
}
.step-active .step-num {
    background: #667eea;
    color: #fff;
}
.step-done .step-num {
    background: #2ecc71;
    color: #fff;
}
.step-done {
    border-color: #2ecc71;
    background: #effaf3;
}
.installer-content {
    padding: 35px 40px;
}
.installer-content h2 {
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 22px;
}
.installer-content p {
    margin-bottom: 16px;
    color: #555;
    line-height: 1.7;
}
.installer-content ul, .installer-content ol {
    padding-right: 22px;
    margin-bottom: 16px;
    line-height: 1.9;
}
.installer-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    direction: ltr;
    display: inline-block;
    color: #d63384;
}
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.6;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.alert ul { padding-right: 18px; margin: 6px 0 0; }

.checks-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 24px;
}
.checks-table th,
.checks-table td {
    text-align: right;
    padding: 10px 12px;
    border-bottom: 1px solid #e3e5ee;
}
.checks-table th {
    background: #f7f8fc;
    font-size: 13px;
    color: #4b5563;
}
.checks-table td.value {
    font-size: 13px;
    color: #6b7280;
    direction: ltr;
    text-align: left;
}
.check-ok { color: #2ecc71; font-size: 22px; }
.check-fail { color: #e74c3c; font-size: 22px; }

.install-form .form-group {
    margin-bottom: 18px;
}
.install-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.install-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}
.install-form input[type="text"],
.install-form input[type="url"],
.install-form input[type="email"],
.install-form input[type="password"],
.install-form select {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e3e5ee;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color .15s;
    font-family: inherit;
}
.install-form input:focus,
.install-form select:focus {
    outline: none;
    border-color: #667eea;
}
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 400 !important;
}
.installer-actions {
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.btn {
    display: inline-block;
    padding: 11px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s;
    font-family: inherit;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.btn-secondary {
    background: #e3e5ee;
    color: #2c3e50;
}
.btn-large { padding: 14px 36px; font-size: 16px; }

.installer-footer {
    text-align: center;
    padding: 18px 30px;
    background: #f7f8fc;
    color: #6b7280;
    font-size: 13px;
    border-top: 1px solid #e3e5ee;
}
.summary {
    background: #f7f8fc;
    padding: 18px 22px;
    border-radius: 8px;
    margin-bottom: 22px;
    border-right: 4px solid #667eea;
}
.summary h3 { color: #2c3e50; margin-bottom: 10px; }
.summary li { margin-bottom: 4px; }
.log-box {
    background: #1e1e2e;
    color: #a6e3a1;
    padding: 18px;
    border-radius: 8px;
    margin: 18px 0;
    overflow-x: auto;
}
.log-box h3 { color: #fff; margin-bottom: 8px; font-size: 14px; }
.log-box pre {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    direction: ltr;
    text-align: left;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
}
.next-steps {
    background: #fff8e6;
    padding: 18px 22px;
    border-radius: 8px;
    margin-top: 22px;
    border-right: 4px solid #f39c12;
}
.next-steps h3 { color: #d68910; margin-bottom: 8px; }
.error-box {
    padding: 30px;
    text-align: center;
}
.error-box h2 { color: #e74c3c; margin-bottom: 12px; }

@media (max-width: 768px) {
    .installer { margin: 10px; border-radius: 8px; }
    .installer-content { padding: 25px 20px; }
    .installer-header { padding: 24px 20px; }
    .install-form .form-row { grid-template-columns: 1fr; }
    .installer-steps { padding: 14px 16px; }
    .step { padding: 6px 12px; font-size: 12px; }
    .installer-actions { flex-direction: column-reverse; }
    .installer-actions .btn { width: 100%; text-align: center; }
}
