/* admin_passcode_popup.css */
.admin-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.admin-popup-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 320px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.admin-popup-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.admin-popup-header h3 {
    color: #2969ED;
    font-size: 1.3rem;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.admin-popup-header p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.admin-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4757;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.admin-close-btn:hover {
    background: #ff3742;
    transform: scale(1.1);
}

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

.admin-form-group label {
    display: block;
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.admin-form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    text-align: center;
    transition: all 0.3s;
    background: #f8f9fa;
    letter-spacing: 2px;
}

.admin-form-input:focus {
    outline: none;
    border-color: #2969ED;
    background: white;
    box-shadow: 0 0 0 3px rgba(41, 105, 237, 0.1);
}

.admin-form-input::placeholder {
    color: #aaa;
    letter-spacing: normal;
}

.admin-error-msg {
    color: #ff4757;
    font-size: 0.8rem;
    margin-top: 8px;
    text-align: center;
    display: none;
    background: #ffeaea;
    padding: 8px;
    border-radius: 6px;
}

.admin-popup-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.admin-btn {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-btn-back {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.admin-btn-back:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.admin-btn-enter {
    background: linear-gradient(135deg, #2969ED 0%, #4f46e5 100%);
    color: white;
}

.admin-btn-enter:hover {
    background: linear-gradient(135deg, #2969ED 0%, #4338ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(41, 105, 237, 0.3);
}

.admin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.admin-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

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