/* * Ayyan Dealer System - Main Styles
 * Professional English Documentation 
 */

/* 1. Entry Popup Overlay */
.ayyan-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.ayyan-popup-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.ayyan-popup-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333333;
    font-size: 24px;
}

/* 2. Professional Button Components */
.ayyan-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-register { background: #27ae60; color: #ffffff; }
.btn-login { background: #2980b9; color: #ffffff; }
.btn-customer { background: #f4f4f4; color: #333333; }

.ayyan-btn:hover { 
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 3. Floating Dealer Access Icon */
#ayyan-dealer-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #27ae60;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    z-index: 999998;
    transition: all 0.3s ease;
}

#ayyan-dealer-float:hover {
    transform: scale(1.1) rotate(5deg);
    background: #2ecc71;
}

#ayyan-dealer-float img {
    width: 32px;
    height: auto;
}

/* 4. Success Page & Progress Tracker */
.ayyan-status-container {
    max-width: 650px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.ayyan-progress-tracker {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
}

.ayyan-step {
    flex: 1;
    position: relative;
    font-size: 13px;
    color: #999;
}

.ayyan-step .circle {
    width: 30px;
    height: 30px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 auto 10px;
    line-height: 30px;
    color: #fff;
    font-weight: bold;
}

.ayyan-step.active .circle { background: #27ae60; }
.ayyan-step.pending .circle { background: #f39c12; }

/* Credential Display Box */
.credential-box {
    background: #f9f9f9;
    border: 2px dashed #27ae60;
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
}

.credential-item {
    font-size: 18px;
    margin: 10px 0;
}

.credential-item strong {
    color: #2c3e50;
}

.credential-item code {
    background: #eee;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

/* 5. Generic Login/Registration Form Styles */
.ayyan-login-container {
    max-width: 450px;
    margin: 60px auto;
    padding: 40px;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.ayyan-login-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1.5px solid #dddddd;
    border-radius: 6px;
    font-size: 15px;
}

.ayyan-login-container input:focus {
    border-color: #2980b9;
    outline: none;
}

.ayyan-login-msg {
    margin-bottom: 20px;
    font-size: 14px;
    padding: 10px;
    border-radius: 4px;
    display: none; /* Shown via JS */
}

.ayyan-login-msg.msg-error { 
    display: block;
    background: #fdecea;
    color: #e74c3c; 
    border: 1px solid #fadbd8;
}

.ayyan-login-msg.msg-success { 
    display: block;
    background: #eafaf1;
    color: #27ae60; 
    border: 1px solid #d5f5e3;
}

/* 6. Utility Classes */
.hidden { display: none !important; }