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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #667eea;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============ NAVIGATION BAR ============ */
.navbar {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
}

.nav-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo i {
    font-size: 20px;
    color: #667eea;
}

.nav-logo h2 {
    font-size: 18px;
    color: #333;
}

.nav-logo span {
    color: #667eea;
}

.nav-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a i {
    font-size: 12px;
}

/* ============ MAIN CONTENT ============ */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
}

.container {
    width: 100%;
    max-width: 450px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 28px 24px;
}

.logo {
    text-align: center;
    margin-bottom: 16px;
}

.logo i {
    font-size: 40px;
    color: #667eea;
}

h1 {
    font-size: 24px;
    color: #333;
    margin-top: 8px;
}

.subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 28px;
    font-size: 13px;
}

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

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

label i {
    color: #25D366;
    margin-right: 5px;
}

input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 15px;
    background: #fafafa;
}

input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 11px;
}

button {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

/* ============ STATUS CARDS ============ */
.status-card, .code-card, .success-card {
    margin-top: 20px;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.status-card {
    background: #f5f5f5;
}

.code-card {
    background: #f0f4ff;
    border: 1px solid #667eea;
}

.success-card {
    background: #e8f5e9;
    border: 1px solid #4caf50;
}

.status-card i, .code-card i, .success-card i {
    font-size: 40px;
    margin-bottom: 10px;
}

.status-card i {
    color: #667eea;
}

.code-card i {
    color: #667eea;
}

.success-card i {
    color: #4caf50;
}

.status-card h3, .code-card h3, .success-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.code-box {
    background: #667eea;
    padding: 16px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 4px;
    color: white;
    text-align: center;
    margin: 15px auto;
    display: inline-block;
    width: auto;
    min-width: 180px;
}

.session-box {
    background: #e8f5e9;
    padding: 10px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
    margin: 12px 0;
    color: #2e7d32;
}

.note {
    font-size: 11px;
    color: #888;
    margin-top: 8px;
}

.copy-btn {
    margin-top: 12px;
    background: #4caf50;
    width: auto;
    padding: 8px 20px;
    font-size: 13px;
}

.copy-btn i {
    margin-right: 5px;
}

/* ============ FOOTER ============ */
.footer {
    text-align: center;
    padding: 16px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.footer p {
    color: #888;
    font-size: 11px;
}

.footer a {
    color: #667eea;
    text-decoration: none;
}

/* ============ SPINNER ============ */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

.spinner.hidden {
    display: none;
}

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

/* ============ RESPONSIVE ============ */
@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        justify-content: center;
    }
    
    .card {
        padding: 20px 16px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .code-box {
        font-size: 22px;
        padding: 12px;
        letter-spacing: 3px;
        min-width: 150px;
    }
    
    input, button {
        padding: 10px 12px;
        font-size: 14px;
    }
}
/* Toast Notification - Slides from right */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 280px;
    max-width: 350px;
    padding: 14px 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.toast.show {
    transform: translateX(0);
}

.toast-info {
    background: #667eea;
    color: white;
    border-left: 4px solid #4a66c4;
}

.toast-success {
    background: #4caf50;
    color: white;
    border-left: 4px solid #388e3c;
}

.toast-error {
    background: #f44336;
    color: white;
    border-left: 4px solid #d32f2f;
}

.toast-warning {
    background: #ff9800;
    color: white;
    border-left: 4px solid #e68900;
}

.toast i {
    margin-right: 8px;
}

@media (max-width: 480px) {
    .toast {
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}
.copy-code-btn {
    margin-top: 12px;
    background: #667eea;
    width: auto;
    padding: 8px 20px;
    font-size: 13px;
    margin-bottom: 12px;
}

.copy-code-btn i {
    margin-right: 5px;
}

.copy-code-btn:hover {
    background: #5a67d8;
}